Allow Gamemodes to interrupt flow on file creation

This commit is contained in:
jdflyer
2026-08-07 18:46:52 -07:00
parent ce6850acd3
commit 8be95d3aa3
6 changed files with 115 additions and 12 deletions
+4 -1
View File
@@ -7,15 +7,18 @@
#define GAMEMODE_SERVICE_MAJOR 1u
#define GAMEMODE_SERVICE_MINOR 0u
struct dFile_select_c;
typedef struct {
const char* gamemodeId;
const char* fullName;
const char* saveName;
const char saveName[32]; // GCI Filenames are limited to 31 characters
void (*onActivatedFunction)();
void (*onDeactivatedFunction)();
void (*onPlayFunction)();
void (*onSaveLoadedFunction)();
void (*onNewSaveFunction)();
bool (*onNewSaveSelectFunction)(dFile_select_c* fileSelect); // Should return true when any custom options flows are finished
void (*onGameResetFunction)();
void (*onTickFunction)();
} GamemodeDesc;