MCPcopy Create free account
hub / github.com/Stewmath/GameYob / initializeGameboyFirstTime

Function initializeGameboyFirstTime

arm9/source/main.cpp:153–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void initializeGameboyFirstTime() {
154 if (sgbBordersEnabled)
155 probingForBorder = true; // This will be ignored if starting in sgb mode, or if there is no sgb mode.
156 sgbBorderLoaded = false; // Effectively unloads any sgb border
157
158 initializeGameboy();
159
160 if (gbsMode) {
161 disableMenuOption("State Slot");
162 disableMenuOption("Save State");
163 disableMenuOption("Load State");
164 disableMenuOption("Delete State");
165 disableMenuOption("Suspend");
166 disableMenuOption("Exit without saving");
167 }
168 else {
169 enableMenuOption("State Slot");
170 enableMenuOption("Save State");
171 enableMenuOption("Suspend");
172 if (checkStateExists(stateNum)) {
173 enableMenuOption("Load State");
174 enableMenuOption("Delete State");
175 }
176 else {
177 disableMenuOption("Load State");
178 disableMenuOption("Delete State");
179 }
180
181 if (numRamBanks && !autoSavingEnabled)
182 enableMenuOption("Exit without saving");
183 else
184 disableMenuOption("Exit without saving");
185 }
186
187 if (biosExists)
188 enableMenuOption("GBC Bios");
189 else
190 disableMenuOption("GBC Bios");
191}
192
193int main(int argc, char* argv[])
194{

Callers 2

selectRomFunction · 0.85
mainFunction · 0.85

Calls 4

initializeGameboyFunction · 0.85
disableMenuOptionFunction · 0.85
enableMenuOptionFunction · 0.85
checkStateExistsFunction · 0.85

Tested by

no test coverage detected