Files
dusklight/libs/JSystem/include/JSystem/JSupport/JSUIosBase.h
T
Luke Street 4df8ccc871 Reorganize library code into libs/ (#3119)
* 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
2026-03-01 14:35:36 -08:00

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