summaryrefslogtreecommitdiff
path: root/src/KingSystem/System/AutoDim.h
blob: b893da53685598047a8b92551afd70c9ee847abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <heap/seadDisposer.h>
#include <thread/seadCriticalSection.h>

namespace ksys {

class AutoDim {
    SEAD_SINGLETON_DISPOSER(AutoDim)
    AutoDim() = default;

public:
    void setEnabled(bool enable);
    bool isEnabled() const;

private:
    bool mEnabled = true;
    sead::CriticalSection mCS{};
};

}  // namespace ksys