diff options
| author | elijah-thomas774 <elijahthomas774@gmail.com> | 2023-10-08 14:12:29 -0400 |
|---|---|---|
| committer | elijah-thomas774 <elijahthomas774@gmail.com> | 2023-10-08 14:12:29 -0400 |
| commit | fa36edcffdde37c7e9cab881d5c825747fc006f2 (patch) | |
| tree | 1539d68b7f0311c4c492b622b081c76020ed6112 /src/toBeSorted/misc_flag_managers.cpp | |
| parent | f422b6401769235b2985e7862c35ee271e4dbe7a (diff) | |
Filled out FileManager (NonMatching)
Diffstat (limited to 'src/toBeSorted/misc_flag_managers.cpp')
| -rw-r--r-- | src/toBeSorted/misc_flag_managers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/toBeSorted/misc_flag_managers.cpp b/src/toBeSorted/misc_flag_managers.cpp index 685210b4..0af9a21e 100644 --- a/src/toBeSorted/misc_flag_managers.cpp +++ b/src/toBeSorted/misc_flag_managers.cpp @@ -32,7 +32,7 @@ class TBoxFlagManager: public CommittableFlagManager { // bool mNeedsCommit; // u32 pad; FlagSpace mFlagSpace; - u16 mSceneIndex; + s16 mSceneIndex; BitwiseFlagHelper mFlagHelper; static u16* sFlags; @@ -67,13 +67,13 @@ void TBoxFlagManager::init() {} void TBoxFlagManager::copyFromSave(u16 sceneIndex) { mSceneIndex = sceneIndex; - u16* flags = FileManager::getInstance()->getTBoxFlags2(); - mFlagSpace.copyFromSaveFile2(flags + sceneIndex * 2, 0, 2); + u16* flags = FileManager::getInstance()->getTBoxFlagsConst(); + mFlagSpace.copyFromSaveFile2(flags + (sceneIndex * 2), 0, 2); } bool TBoxFlagManager::checkFlag(u16 sceneIndex, u16 flag) { s32 actualFlag = sceneIndex * 0x20 + flag; - return mFlagHelper.checkFlag(actualFlag % 16, actualFlag / 16, FileManager::getInstance()->getTBoxFlags2(), getFlagCount()); + return mFlagHelper.checkFlag(actualFlag % 16, actualFlag / 16, FileManager::getInstance()->getTBoxFlagsConst(), getFlagCount()); } s32 TBoxFlagManager::getFlagCount() const { |
