mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-26 23:00:30 +00:00
gRestartPointName -> gSaveGame.mRestartPointName
This commit is contained in:
parent
f21363246e
commit
ceb18d4869
@ -8,7 +8,8 @@
|
||||
CMenu* pYesNoMenu;
|
||||
|
||||
EXPORT i32 gFrontGauge;
|
||||
char gRestartPointName[50];
|
||||
|
||||
SSaveGame gSaveGame;
|
||||
|
||||
// @FIXME add content
|
||||
SLevel Levels[FRONT_NUM_LEVELS];
|
||||
@ -186,7 +187,7 @@ void Front_SaveGameState(void)
|
||||
v4.vz = 0;
|
||||
|
||||
char *pName = &reinterpret_cast<char*>(Trig_GetPosition(&v4, RestartNode))[6];
|
||||
char *pDestBuf = gRestartPointName;
|
||||
char *pDestBuf = &gSaveGame.mRestartPointName[0];
|
||||
i32 i = 0;
|
||||
|
||||
while (*pName)
|
||||
|
6
front.h
6
front.h
@ -6,8 +6,9 @@
|
||||
#include "export.h"
|
||||
#include "main.h"
|
||||
#include "pshell.h"
|
||||
#include "shell.h"
|
||||
|
||||
EXPORT extern char gRestartPointName[50];
|
||||
EXPORT extern SSaveGame gSaveGame;
|
||||
|
||||
struct SLevel
|
||||
{
|
||||
@ -112,9 +113,6 @@ public:
|
||||
void validate_SEntry(void);
|
||||
void validate_CMenu(void);
|
||||
|
||||
// @FIXME
|
||||
struct SSaveGame;
|
||||
|
||||
EXPORT void Front_GaugeOff(void);
|
||||
EXPORT void Front_ClearScreen(void);
|
||||
EXPORT void Front_Display(void);
|
||||
|
2
init.cpp
2
init.cpp
@ -237,7 +237,7 @@ void Init_Cleanup(i32 a1)
|
||||
Spool_ClearAllPSXs();
|
||||
Trig_DeleteTrigFile();
|
||||
|
||||
gRestartPointName[0] = 0;
|
||||
gSaveGame.mRestartPointName[0] = 0;
|
||||
Reloc_UnloadAll();
|
||||
M3dZone_Init();
|
||||
}
|
||||
|
@ -1500,6 +1500,8 @@ void validate_SSaveGame(void)
|
||||
VALIDATE(SSaveGame, mChecksum, 0x0);
|
||||
VALIDATE(SSaveGame, field_4, 0x4);
|
||||
|
||||
VALIDATE(SSaveGame, mRestartPointName, 0xD);
|
||||
|
||||
VALIDATE(SSaveGame, field_3F, 0x3F);
|
||||
|
||||
VALIDATE(SSaveGame, mDifficulty, 0x54);
|
||||
|
Loading…
Reference in New Issue
Block a user