mirror of
https://github.com/zeldaret/botw
synced 2026-06-04 10:48:32 -04:00
ksys/gdt: Add getBool helper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user