mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Prevent deleting saves in special or customs
This prevents deleting telesaves and quicksaves in special modes and custom levels. Otherwise, rolling credits in a custom level would still delete the main game quicksave.
This commit is contained in:
parent
41126c2097
commit
d841612be2
1 changed files with 10 additions and 0 deletions
|
@ -6996,6 +6996,11 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
|
||||
void Game::deletequick(void)
|
||||
{
|
||||
if (inspecial() || map.custommode)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if( !FILESYSTEM_delete( "saves/qsave.vvv" ) )
|
||||
vlog_error("Error deleting saves/qsave.vvv");
|
||||
else
|
||||
|
@ -7004,6 +7009,11 @@ void Game::deletequick(void)
|
|||
|
||||
void Game::deletetele(void)
|
||||
{
|
||||
if (inspecial() || map.custommode)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if( !FILESYSTEM_delete( "saves/tsave.vvv" ) )
|
||||
vlog_error("Error deleting saves/tsave.vvv");
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue