MCPcopy Create free account
hub / github.com/ZDoom/Raze / G_ReadConfig

Function G_ReadConfig

source/core/gameconfigfile.cpp:616–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void G_ReadConfig(const char* game)
617{
618 GameConfig->DoGameSetup(game);
619 GameConfig->DoKeySetup(game);
620
621 // Process automatically executed files
622 FExecList *exec;
623 FArgs *execFiles = new FArgs;
624 if (!(Args->CheckParm("-noautoexec")))
625 GameConfig->AddAutoexec(execFiles, game);
626 exec = D_MultiExec(execFiles, NULL);
627 delete execFiles;
628
629 // Process .cfg files at the start of the command line.
630 execFiles = Args->GatherFiles ("-exec");
631 exec = D_MultiExec(execFiles, exec);
632 delete execFiles;
633
634 // [RH] process all + commands on the command line
635 exec = C_ParseCmdLineParams(exec);
636
637 // Actually exec command line commands and exec files.
638 if (exec != NULL)
639 {
640 exec->ExecCommands();
641 delete exec;
642 exec = NULL;
643 }
644
645 FBaseCVar::EnableCallbacks();
646 GameName = game;
647}
648
649void G_SaveConfig()
650{

Callers 1

RunGameFunction · 0.85

Calls 8

D_MultiExecFunction · 0.85
C_ParseCmdLineParamsFunction · 0.85
DoGameSetupMethod · 0.80
DoKeySetupMethod · 0.80
CheckParmMethod · 0.80
AddAutoexecMethod · 0.80
GatherFilesMethod · 0.80
ExecCommandsMethod · 0.80

Tested by

no test coverage detected