mirror of https://github.com/zeldaret/botw.git
ksys/gdt: Add getBool helper
This commit is contained in:
parent
dd8ef71390
commit
bfa4a2553e
|
|
@ -2,4 +2,16 @@
|
|||
|
||||
#include "KingSystem/GameData/gdtManager.h"
|
||||
|
||||
namespace ksys::gdt {} // namespace ksys::gdt
|
||||
namespace ksys::gdt {
|
||||
|
||||
inline bool getBool(FlagHandle handle, bool debug = false) {
|
||||
bool value{};
|
||||
|
||||
auto* mgr = Manager::instance();
|
||||
if (mgr)
|
||||
mgr->getBool(handle, &value, debug);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
} // namespace ksys::gdt
|
||||
|
|
|
|||
Loading…
Reference in New Issue