mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-12 19:24:58 -04:00
merge cuyler's PR
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef JSUIOSBASE_H
|
||||
#define JSUIOSBASE_H
|
||||
|
||||
#include "types.h"
|
||||
#include "JSystem/JSupport/JSUStreamEnum.h"
|
||||
|
||||
class JSUIosBase {
|
||||
public:
|
||||
inline JSUIosBase() : mState(GOOD) { }
|
||||
|
||||
virtual ~JSUIosBase() { }
|
||||
|
||||
bool isGood() { return !this->mState; }
|
||||
void clrState(EIoState ioState) { this->mState &= ~ioState; }
|
||||
void setState(EIoState ioState) { this->mState |= ioState; }
|
||||
|
||||
u8 mState;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user