MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zMenuUpdateMode

Function zMenuUpdateMode

src/SB/Game/zMenu.cpp:300–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300U32 zMenuUpdateMode()
301{
302 U32 retVal = 0;
303 if (gGameMode == eGameMode_Load)
304 {
305 F32 elapsed1 = float(iTimeGet()) - time_last;
306 retVal = zSaveLoad_LoadLoop();
307 if (retVal == '0000')
308 {
309 retVal = 0;
310 }
311 else if (retVal == 'MNU3')
312 {
313 retVal = 'HB00';
314 }
315 time_last = elapsed1 + float(iTimeGet());
316 }
317 else if (gGameMode == eGameMode_Save)
318 {
319 zSaveLoad_SaveLoop();
320 globals.autoSaveFeature = 1;
321 retVal = 'HB00';
322 }
323 return retVal;
324}
325
326U32 zMenuGetCorruptFiles(char name[][64])
327{

Callers 1

zMenuLoopFunction · 0.70

Calls 3

zSaveLoad_LoadLoopFunction · 0.70
zSaveLoad_SaveLoopFunction · 0.70
iTimeGetFunction · 0.50

Tested by

no test coverage detected