summaryrefslogtreecommitdiff
path: root/include/JSystem/JSupport/JSUIosBase.h
blob: c44a81e2f01b565e4f9f4fd705a5f8182e7866fc (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
#ifndef JSUIOSBASE_H_
#define JSUIOSBASE_H_

#include "dolphin/types.h"

enum EIoState {
    IOS_STATE_1 = 1,
};

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