Skip to content

Commit

Permalink
JSUInputStream
Browse files Browse the repository at this point in the history
Not marked as matching; JSURandomInputStream::__vtable isn't being generated in the .obj for some reason, not sure why.
  • Loading branch information
magcius committed Sep 10, 2023
1 parent dd9366f commit bf050c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/JSystem/JSupport/JSUInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class JSUInputStream : public JSUIosBase {
}

// TODO: return value probably wrong
/* 802DC298 */ s32 read(void*, s32);
s32 read(void*, s32);
}; // Size = 0x8

// move?
Expand Down
6 changes: 3 additions & 3 deletions include/JSystem/JSupport/JSURandomInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class JSURandomInputStream : public JSUInputStream {
/* vt[8] */ virtual s32 seekPos(s32, JSUStreamSeekFrom) = 0;

// TODO: fix return types
/* 802DC370 */ s32 align(s32);
/* 802DC458 */ s32 peek(void*, s32);
/* 802DC4DC */ s32 seek(s32, JSUStreamSeekFrom);
s32 align(s32);
s32 peek(void*, s32);
s32 seek(s32, JSUStreamSeekFrom);
}; // Size = 0x8

#endif
3 changes: 3 additions & 0 deletions src/JSystem/JSupport/JSUInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

#include "JSystem/JSupport/JSUInputStream.h"
#include "JSystem/JSupport/JSURandomInputStream.h"
#include "dolphin/os/OS.h"

/* 802BF3F4-802BF47C .text __dt__14JSUInputStreamFv */
JSUInputStream::~JSUInputStream() {
if (!isGood())
OSReport("JSUInputStream: occur error.\n");
}

/* 802BF47C-802BF4D4 .text read__14JSUInputStreamFPvl */
Expand Down

0 comments on commit bf050c9

Please sign in to comment.