MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / main

Function main

game/main.cpp:11–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace OpenApoc;
10
11int main(int argc, char *argv[])
12{
13 if (config().parseOptions(argc, argv))
14 {
15 return EXIT_FAILURE;
16 }
17 LogInfo("Starting OpenApoc \"%s\"", OPENAPOC_VERSION);
18
19 {
20 up<Framework> fw(new Framework(UString(argv[0]), true));
21
22 fw->run(mksp<BootUp>());
23
24 UI::unload();
25 }
26
27 return 0;
28}

Callers

nothing calls this directly

Calls 2

runMethod · 0.80
parseOptionsMethod · 0.45

Tested by

no test coverage detected