mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
956e84b0e7
* Fix clang union handling (affects all TUs including d_camera.h) Union members with non-trivial ctors/dtors is undefined behavior and clangd normally throws a fit and refuses to parse the whole union, but it seems to be possible to ifdef the problematic ctors out for non-mwerks compilers and explicitly tell modern compilers to use the defaults instead. Thanks to encounter for this fix. * Link all TUs that already match on debug In order to link TUs for debug, most functions seem to need to have their alignment set to 16 in symbols.txt. There are a few hundred functions that seem to be the exception and break when their alignment is set to 16, but I don't know the reason for this. * Remove some fakematches (nosyminline/sym off) for weak func order in retail * Fix clang not knowing that MSL_C++ is C++ * Link more debug TUs * Fix missing PAL split * Fix wrong slashes being used in includes * RZDE01_00: Fix incorrect capitalization in config.yml * Add RZDE01_00 to configure task * Revert configure.py to use MatchingFor * Fix PAL splits and symbols, link matching PAL TUs
27 lines
607 B
C++
27 lines
607 B
C++
#ifndef JSUFILESTREAM_H
|
|
#define JSUFILESTREAM_H
|
|
|
|
#include "JSystem/JSupport/JSURandomInputStream.h"
|
|
|
|
class JKRFile;
|
|
|
|
/**
|
|
* @ingroup jsystem-jsupport
|
|
*
|
|
*/
|
|
class JSUFileInputStream : public JSURandomInputStream {
|
|
public:
|
|
// TODO: fix return values
|
|
/* 802DC638 */ JSUFileInputStream(JKRFile*);
|
|
/* 802DC67C */ u32 readData(void*, s32);
|
|
/* 802DC74C */ s32 seekPos(s32, JSUStreamSeekFrom);
|
|
/* 802DC82C */ s32 getLength() const;
|
|
/* 802DC85C */ s32 getPosition() const;
|
|
|
|
private:
|
|
/* 0x08 */ JKRFile* mFile;
|
|
/* 0x0C */ s32 mPosition;
|
|
}; // Size = 0x10
|
|
|
|
#endif /* JSUFILESTREAM_H */
|