Skip to content

Commit cfd94b5

Browse files
committed
- better profile/progress save messaging
1 parent 5530c22 commit cfd94b5

1 file changed

Lines changed: 7 additions & 21 deletions

File tree

src_rebuild/Game/C/loadsave.c

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,7 @@ void LoadCurrentProfile(int init)
9797
}
9898

9999
SetTextColour(128, 128, 64);
100-
ShowSavingWaitMessage(G_LTXT(GTXT_LoadingConfiguration), 0);
101-
/*
102-
{
103-
RECT16 rect;
104-
rect.x = 0;
105-
rect.y = 0;
106-
rect.w = 320;
107-
rect.h = 512;
108100

109-
ClearImage(&rect, 0, 0, 0);
110-
DrawSync(0);
111-
}
112-
*/
113101
error = 1;
114102

115103
#ifndef PSX
@@ -134,6 +122,7 @@ void LoadCurrentProfile(int init)
134122

135123
if (fileSize <= CalcConfigDataSize())
136124
{
125+
ShowSavingWaitMessage(G_LTXT(GTXT_LoadingConfiguration), 0);
137126
LoadConfigData((char*)_other_buffer);
138127
error = 0;
139128
}
@@ -152,10 +141,6 @@ void LoadCurrentProfile(int init)
152141
SetTextColour(128, 0, 0);
153142
ShowSavingWaitMessage(G_LTXT(GTXT_LoadingError), 0);
154143
}
155-
else
156-
{
157-
ShowSavingWaitMessage(G_LTXT(GTXT_OK), 0);
158-
}
159144

160145
SetMasterVolume(gMasterVolume);
161146
}
@@ -196,10 +181,6 @@ void SaveCurrentProfile()
196181
SetTextColour(128, 0, 0);
197182
ShowSavingWaitMessage(G_LTXT(GTXT_SavingError), 0);
198183
}
199-
else
200-
{
201-
ShowSavingWaitMessage(G_LTXT(GTXT_OK), 0);
202-
}
203184
#else
204185
// TODO: PSX memory card code
205186
#endif
@@ -217,7 +198,6 @@ int LoadCurrentGame()
217198
strcat(filePath, "/progress.dat");
218199

219200
SetTextColour(128, 128, 64);
220-
ShowSavingWaitMessage(G_LTXT(GTXT_LoadingProgress), 0);
221201

222202
// load config
223203
FILE* fp = fopen(filePath, "rb");
@@ -233,10 +213,16 @@ int LoadCurrentGame()
233213

234214
if (fileSize <= CalcGameDataSize())
235215
{
216+
ShowSavingWaitMessage(G_LTXT(GTXT_LoadingProgress), 0);
217+
236218
LoadGameData((char*)_other_buffer);
237219
return 1;
238220
}
239221
}
222+
else
223+
{
224+
ShowSavingWaitMessage(G_LTXT(GTXT_NoSavedData), 0);
225+
}
240226
#else
241227
// TODO: PSX memory card code
242228
#endif

0 commit comments

Comments
 (0)