summaryrefslogtreecommitdiff
path: root/include/JSystem/JSupport/JSUIosBase.h
blob: 761c1d61df2119e57fa60b2379b9d67fec989903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef JSUIOSBASE_H_
#define JSUIOSBASE_H_

#include "dolphin/types.h"

enum EIoState {
    IOS_STATE_1 = 1,
};

/**
* @ingroup jsystem-jsupport
* 
*/
class JSUIosBase {
public:
    JSUIosBase() { mState = false; }

    virtual ~JSUIosBase() {}

    bool isGood() const { return mState == 0; }
    void clrState(EIoState state) { mState &= ~state; }
    void setState(EIoState state) { mState |= state; }

private:
    u8 mState;
};  // Size = 0x8

#endif