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

Method call

src/Osako/ErrorViewApp.cpp:25–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void ErrorViewApp::call(ErrorId id)
26{
27 if (caErrorPriority[msErrorId] > caErrorPriority[id])
28 return;
29
30 msErrorId = id;
31
32 switch (id)
33 {
34 case ERROR_FATAL:
35 ResetAgent::msInvalid = 1;
36 if (NetGameMgr::ptr()->getState() == 0xd)
37 {
38 msErrorId = ERROR_LA_TRANSFER;
39 NetGameMgr::ptr()->end(false);
40 }
41 case ERROR_LA_TRANSFER:
42 case ERROR_LA_TRANSFER2:
43 case ERROR_LA_ROUTER:
44 case ERROR_LA_CONNECTED:
45 case ERROR_LA_CONNECTION:
46 if (GetGameAudioMain()->isActive())
47 GetGameAudioMain()->fadeOutAll(30);
48 break;
49 case ERROR_COVER_OPEN:
50 case ERROR_NO_DISK:
51 case ERROR_WRONG_DISK:
52 case ERROR_RETRY:
53 if (NetGameMgr::ptr()->getState() == 0xd)
54 {
55 msErrorId = ERROR_LA_TRANSFER;
56 NetGameMgr::ptr()->end(false);
57 if (GetGameAudioMain()->isActive())
58 GetGameAudioMain()->fadeOutAll(30);
59 }
60 break;
61 }
62 System::getDisplay()->set_38(1);
63 AppMgr::insertErrorViewApp();
64}
65
66ErrorViewApp::ErrorViewApp() : GameApp(0x10000, "Err View", nullptr)
67{

Callers

nothing calls this directly

Calls 6

getDisplayFunction · 0.85
fadeOutAllMethod · 0.80
set_38Method · 0.80
getStateMethod · 0.45
endMethod · 0.45
isActiveMethod · 0.45

Tested by

no test coverage detected