mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 20:01:20 +02:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "Game/System/NerveExecutor.hpp"
|
|
|
|
class NANDRequestInfo;
|
|
class NANDResultCode;
|
|
class SaveDataBannerCreator;
|
|
class SysConfigFile;
|
|
class UserFile;
|
|
|
|
class SaveDataHandler : public NerveExecutor {
|
|
public:
|
|
SaveDataHandler(const SysConfigFile*, const UserFile*);
|
|
|
|
void update();
|
|
void requestCheckEnableToCreate();
|
|
void requestLoadSaveData();
|
|
bool requestVerifyAfterLoadGameDataFile();
|
|
void initializeUserFileMemory(int, const UserFile*);
|
|
void copyUserFileMemory(int, int);
|
|
void restoreGameDataFile(const char*, void*, u32);
|
|
void storeUserFile(const UserFile*);
|
|
void storeSysConfigFile(const SysConfigFile*);
|
|
void requestSaveSaveData();
|
|
void requestRemoveSaveData();
|
|
static u32 getEnoughtTempBufferSize();
|
|
bool isDone() const;
|
|
NANDResultCode getLastResultCode() const;
|
|
void exeWait();
|
|
void exeProcessing();
|
|
void exeSaveProcessingGameData();
|
|
void exeSaveProcessingBanner();
|
|
void exeRemoveProcessingBanner();
|
|
void exeRemoveProcessingGameData();
|
|
static void resetSaveData(u8*);
|
|
static void initializeAllFileInSaveData(u8*, const SysConfigFile*, const UserFile*);
|
|
static bool isCorrectFileHeader(const u8*);
|
|
static void copySaveDataEachFile(u8*, const u8*);
|
|
void createCommunicationBuffer();
|
|
bool tryRemoveFile(const char*, bool*);
|
|
bool trySave(bool*, bool);
|
|
|
|
/* 0x08 */ NANDRequestInfo* mNANDRequestInfo;
|
|
/* 0x0C */ u32 _C;
|
|
/* 0x10 */ u32 _10;
|
|
/* 0x14 */ u8* _14;
|
|
/* 0x18 */ u8* _18;
|
|
/* 0x1C */ SaveDataBannerCreator* mBannerCreator;
|
|
};
|