MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ParseCommandLine

Method ParseCommandLine

apps/tetris/Tetris/TetrisApplication.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool TetrisApplication::ParseCommandLine(const char* commandLine)
81{
82 // Seed GamePaths with a Tetris-only codename before the base call
83 // resolves it. GamePaths::Initialize is idempotent — the first
84 // caller wins — so this keeps Tetris's display.cfg / graphics.cfg /
85 // audio.cfg under %APPDATA%/PoseidonTetris/ instead of sharing the
86 // main Cold War Assault install's %APPDATA%/CWR/.
87 GamePaths::Instance().Initialize("PoseidonTetris", "PoseidonTetris");
88 return GameApplication::ParseCommandLine(commandLine);
89}
90
91bool TetrisApplication::InitializeSubsystems()
92{

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected