mirror of
https://github.com/SMGCommunity/Petari.git
synced 2026-11-10 04:41:32 -10:00
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <revolution/os.h>
|
|
|
|
class ConfigDataHolder;
|
|
class GameDataHolder;
|
|
|
|
class UserFile {
|
|
public:
|
|
/// @brief Creates a new `UserFile`.
|
|
UserFile();
|
|
|
|
bool isCreated() const;
|
|
s32 getPowerStarNum() const;
|
|
s32 getStarPieceNum() const;
|
|
s32 getPlayerMissNum() const;
|
|
bool getMiiId(void*) const;
|
|
bool getIconId(u32*) const;
|
|
bool isLastLoadedMario() const;
|
|
bool isOnCompleteEndingMarioAndLuigi() const;
|
|
OSTime getLastModified() const;
|
|
void setCreated();
|
|
void setMiiOrIconId(const void*, const u32*);
|
|
void setLastLoadedMario(bool);
|
|
void onCompleteEndingCurrentPlayer();
|
|
void updateLastModified();
|
|
void setUserName(const wchar_t*);
|
|
const char* getGameDataName() const;
|
|
void makeGameDataBinary(u8*, u32) const;
|
|
void loadFromGameDataBinary(const char*, const u8*, u32);
|
|
const char* getConfigDataName() const;
|
|
void makeConfigDataBinary(u8*, u32) const;
|
|
void loadFromConfigDataBinary(const char*, const u8*, u32);
|
|
void resetAllData();
|
|
bool isViewNormalEnding() const;
|
|
bool isViewCompleteEnding() const;
|
|
bool isPowerStarGetFinalChallengeGalaxy() const;
|
|
|
|
/* 0x00 */ GameDataHolder* mGameDataHolder;
|
|
/* 0x04 */ ConfigDataHolder* mConfigDataHolder;
|
|
/* 0x08 */ bool mIsPlayerMario;
|
|
/* 0x09 */ bool mIsGameDataCorrupted;
|
|
/* 0x0A */ bool mIsConfigDataCorrupted;
|
|
/* 0x0C */ wchar_t* mUserName;
|
|
};
|