diff options
| author | AlexApps99 <alex.apps99@gmail.com> | 2021-07-26 21:58:51 +1200 |
|---|---|---|
| committer | AlexApps99 <alex.apps99@gmail.com> | 2021-07-26 23:05:19 +1200 |
| commit | 42807160cfb33af9f3cf2fa6b0ba98f232208cdb (patch) | |
| tree | 95b1b16a3f4cf7d0ab51e90b3d73e53f74ba7f2b /src/KingSystem/Resource/resResourceGameSaveData.cpp | |
| parent | 88bcc9eec1481b47361dc717c83e4953e8929a2b (diff) | |
Add #ifdef declarations for NON_MATCHING code
Diffstat (limited to 'src/KingSystem/Resource/resResourceGameSaveData.cpp')
| -rw-r--r-- | src/KingSystem/Resource/resResourceGameSaveData.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KingSystem/Resource/resResourceGameSaveData.cpp b/src/KingSystem/Resource/resResourceGameSaveData.cpp index b832fb27..6ab46249 100644 --- a/src/KingSystem/Resource/resResourceGameSaveData.cpp +++ b/src/KingSystem/Resource/resResourceGameSaveData.cpp @@ -44,8 +44,9 @@ s32 GameSaveData::File::findFlagIndex(u32 flag_name_hash) const { return -1; } -// NON_MATCHING: cNullChar is loaded too late (which throws off a lot of things) and Clang is +// cNullChar is loaded too late (which throws off a lot of things) and Clang is // using a different register to access file->info +#ifdef NON_MATCHING void GameSaveData::doCreate_(u8* buffer, u32, sead::Heap*) { auto* heap = gdt::Manager::instance()->getSaveAreaHeap(); al::ByamlIter root_iter{buffer}; @@ -113,6 +114,7 @@ void GameSaveData::doCreate_(u8* buffer, u32, sead::Heap*) { mFiles.pushBack(file); } +#endif void GameSaveData::finalize() { if (mSaveInfo) |
