MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / start

Function start

Source/Start_Emscripten.cpp:126–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126int start(int argc, char *argv[]) {
127
128 g_Debugger = std::make_shared<cDebugger>();
129 g_Window = std::make_shared<cWindow>();
130 g_ResourceMan = std::make_shared<cResourceMan>();
131 g_Fodder = std::make_shared<cFodder>(g_Window);
132
133 auto Params = std::make_shared<sFodderParameters>();
134 Params->Process(argc, argv);
135
136 if (Params->mShowHelp)
137 return 0;
138
139 Params->mCheatsEnabled = true;
140 Params->mMouseAlternative = true;
141 g_Fodder->Prepare(Params);
142 g_Fodder->Phase_SquadPrepare();
143
144 emscripten_set_main_loop(menu_loop, 24, 1);
145
146 //g_Fodder->Service_Show();
147
148 return 0;
149}
150
151#endif

Callers

nothing calls this directly

Calls 3

ProcessMethod · 0.80
PrepareMethod · 0.80
Phase_SquadPrepareMethod · 0.80

Tested by

no test coverage detected