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