MCPcopy Create free account
hub / github.com/TASEmulators/fceux / UNIFGI

Function UNIFGI

src/unif.cpp:562–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562static void UNIFGI(GI h) {
563 switch (h) {
564 case GI_RESETSAVE:
565 FCEU_ClearGameSave(&UNIFCart);
566 break;
567
568 case GI_RESETM2:
569 if (UNIFCart.Reset)
570 UNIFCart.Reset();
571 break;
572 case GI_POWER:
573 if (UNIFCart.Power)
574 UNIFCart.Power();
575 if (UNIFchrrama) memset(UNIFchrrama, 0, 8192);
576 break;
577 case GI_CLOSE:
578 FCEU_SaveGameSave(&UNIFCart);
579 if (UNIFCart.Close)
580 UNIFCart.Close();
581 FreeUNIF();
582 break;
583 }
584}
585
586int UNIFLoad(const char *name, FCEUFILE *fp) {
587 FCEU_fseek(fp, 0, SEEK_SET);

Callers

nothing calls this directly

Calls 4

FCEU_ClearGameSaveFunction · 0.85
FCEU_SaveGameSaveFunction · 0.85
FreeUNIFFunction · 0.85
PowerMethod · 0.45

Tested by

no test coverage detected