MCPcopy Create free account
hub / github.com/doldecomp/mkdd / waitButton

Function waitButton

src/Osako/CardAgent.cpp:227–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 }
226
227 void waitButton()
228 {
229 if (FLAG_OFF(msFlags, 4) || FLAG_OFF(msFlags, 8))
230 {
231 if (FLAG_OFF(msFlags, 4))
232 {
233 mspPrintMemoryCard->closeWindowNoSe();
234 }
235 msState = 0xe;
236 return;
237 }
238
239 if (mspPrintMemoryCard->get_14Thing() == 0)
240 {
241 switch (msButtonAt)
242 {
243 case 1:
244 case 2:
245 msState = 1;
246 break;
247 case 3:
248 case 4:
249 case 5:
250 msState = 4;
251 msSelectAt = 4;
252 msResult = 1;
253 mspPrintMemoryCard->init(PrintMemoryCard::mcBrokenNoSaveContinue);
254 break;
255 case 6:
256 case 7:
257 case 8:
258 msState = 0xe;
259 msResult = 1;
260 mspPrintMemoryCard->closeWindow();
261 break;
262 default:
263#line 285
264 JUT_PANIC(0)
265 break;
266 }
267 }
268 }
269
270 void waitSelect()
271 {

Callers 1

calcFunction · 0.85

Calls 4

closeWindowNoSeMethod · 0.80
get_14ThingMethod · 0.80
closeWindowMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected