mirror of
https://github.com/zeldaret/botw
synced 2026-05-25 15:25:09 -04:00
20 lines
333 B
C++
20 lines
333 B
C++
#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
|