X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=cmd.h;h=cb96abaada65098ccce99692c2eeb6cc5efe2362;hb=70b02a044b03a24bccca138a0e175d37d70685d3;hp=a4881c65c805ada96d757eb93b45ffddc76e5293;hpb=1a73db7156d00f2a1a549718d47e9ec39684325f;p=xonotic%2Fdarkplaces.git diff --git a/cmd.h b/cmd.h index a4881c65..cb96abaa 100644 --- a/cmd.h +++ b/cmd.h @@ -89,6 +89,11 @@ extern cmd_source_t cmd_source; void Cmd_Init (void); void Cmd_Shutdown (void); +// called by Host_Init, this marks cvars, commands and aliases with their init values +void Cmd_SaveInitState (void); +// called by FS_GameDir_f, this restores cvars, commands and aliases to init values +void Cmd_RestoreInitState (void); + void Cmd_AddCommand_WithClientCommand (const char *cmd_name, xcommand_t consolefunction, xcommand_t clientfunction, const char *description); void Cmd_AddCommand (const char *cmd_name, xcommand_t function, const char *description); // called by the init functions of other parts of the program to