mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-30 16:35:26 -04:00
4df8ccc871
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
36 lines
656 B
C++
36 lines
656 B
C++
#ifndef JSUIOSBASE_H_
|
|
#define JSUIOSBASE_H_
|
|
|
|
#include <types.h>
|
|
|
|
enum JSUStreamSeekFrom {
|
|
JSUStreamSeekFrom_SET = 0, // absolute
|
|
JSUStreamSeekFrom_CUR = 1, // relative
|
|
JSUStreamSeekFrom_END = 2, // relative to end
|
|
};
|
|
|
|
/**
|
|
* @ingroup jsystem-jsupport
|
|
*
|
|
*/
|
|
class JSUIosBase {
|
|
public:
|
|
enum EIoState {
|
|
IOS_STATE_1 = 1,
|
|
IOS_STATE_2 = 2,
|
|
};
|
|
|
|
JSUIosBase() { mState = false; }
|
|
|
|
virtual ~JSUIosBase() {}
|
|
|
|
bool isGood() const { return mState == 0; }
|
|
void clrState(EIoState state) { mState &= ~state; }
|
|
void setState(EIoState state) { mState |= state; }
|
|
|
|
private:
|
|
bool mState;
|
|
}; // Size = 0x8
|
|
|
|
#endif
|