mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
Marked a few commands as unsafe
This process of finding unsafe commands is not complete!
This commit is contained in:
parent
6d37a67027
commit
f25a5ea2bc
5 changed files with 10 additions and 10 deletions
|
@ -467,7 +467,7 @@ CCMD (print)
|
|||
}
|
||||
}
|
||||
|
||||
CCMD (exec)
|
||||
UNSAFE_CCMD (exec)
|
||||
{
|
||||
if (argv.argc() < 2)
|
||||
return;
|
||||
|
@ -495,7 +495,7 @@ void execLogfile(const char *fn, bool append)
|
|||
}
|
||||
}
|
||||
|
||||
CCMD (logfile)
|
||||
UNSAFE_CCMD (logfile)
|
||||
{
|
||||
|
||||
if (Logfile)
|
||||
|
@ -651,7 +651,7 @@ CCMD (error)
|
|||
}
|
||||
}
|
||||
|
||||
CCMD (error_fatal)
|
||||
UNSAFE_CCMD (error_fatal)
|
||||
{
|
||||
if (argv.argc() > 1)
|
||||
{
|
||||
|
@ -794,7 +794,7 @@ CCMD (warp)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
CCMD (load)
|
||||
UNSAFE_CCMD (load)
|
||||
{
|
||||
if (argv.argc() != 2)
|
||||
{
|
||||
|
@ -819,7 +819,7 @@ CCMD (load)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
CCMD (save)
|
||||
UNSAFE_CCMD (save)
|
||||
{
|
||||
if (argv.argc() < 2 || argv.argc() > 3)
|
||||
{
|
||||
|
|
|
@ -627,7 +627,7 @@ void C_InitConsole (int width, int height, bool ingame)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
CCMD (atexit)
|
||||
UNSAFE_CCMD (atexit)
|
||||
{
|
||||
if (argv.argc() == 1)
|
||||
{
|
||||
|
|
|
@ -2821,7 +2821,7 @@ void D_DoomMain (void)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
CCMD(restart)
|
||||
UNSAFE_CCMD(restart)
|
||||
{
|
||||
// remove command line args that would get in the way during restart
|
||||
Args->RemoveArgs("-iwad");
|
||||
|
@ -2917,4 +2917,4 @@ CUSTOM_CVAR(Bool, I_FriendlyWindowTitle, true, CVAR_GLOBALCONFIG|CVAR_ARCHIVE|CV
|
|||
I_SetWindowTitle(DoomStartupInfo.Name.GetChars());
|
||||
else
|
||||
I_SetWindowTitle(NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -277,7 +277,7 @@ CCMD(recordmap)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
CCMD (open)
|
||||
UNSAFE_CCMD (open)
|
||||
{
|
||||
if (netgame)
|
||||
{
|
||||
|
|
|
@ -315,7 +315,7 @@ void M_SaveDefaultsFinal ()
|
|||
GameConfig = NULL;
|
||||
}
|
||||
|
||||
CCMD (writeini)
|
||||
UNSAFE_CCMD (writeini)
|
||||
{
|
||||
const char *filename = (argv.argc() == 1) ? NULL : argv[1];
|
||||
if (!M_SaveDefaults (filename))
|
||||
|
|
Loading…
Reference in a new issue