MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Execute

Method Execute

ogsr_engine/xrGame/console_commands.cpp:1059–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057public:
1058 CCC_MainMenu(LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = true; };
1059 virtual void Execute(LPCSTR args)
1060 {
1061 bool bWhatToDo = TRUE;
1062 if (0 == xr_strlen(args))
1063 {
1064 bWhatToDo = !MainMenu()->IsActive();
1065 };
1066
1067 if (EQ(args, "on") || EQ(args, "1"))
1068 bWhatToDo = TRUE;
1069
1070 if (EQ(args, "off") || EQ(args, "0"))
1071 bWhatToDo = FALSE;
1072
1073 MainMenu()->Activate(bWhatToDo);
1074 }
1075};
1076
1077struct CCC_StartTimeSingle : public IConsole_Command

Callers

nothing calls this directly

Calls 5

MainMenuFunction · 0.85
EQFunction · 0.85
xr_strlenFunction · 0.50
IsActiveMethod · 0.45
ActivateMethod · 0.45

Tested by

no test coverage detected