mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Add option to delete all custom level save data
To match the option to nuke all main game save data, there is also now an option to nuke all custom level save data separately (which is just all custom level quicksaves, along with stars for level completion). It has its own confirmation menu too. It does not delete any levels from the levels folder.
This commit is contained in:
@@ -905,7 +905,13 @@ static void menuactionpress(void)
|
||||
game.createmenu(Menu::cleardatamenu);
|
||||
map.nexttowercolour();
|
||||
}
|
||||
else if (game.currentmenuoption == gameplayoptionsoffset + 4) {
|
||||
else if (game.currentmenuoption == gameplayoptionsoffset + 4)
|
||||
{
|
||||
music.playef(11);
|
||||
game.createmenu(Menu::clearcustomdatamenu);
|
||||
map.nexttowercolour();
|
||||
}
|
||||
else if (game.currentmenuoption == gameplayoptionsoffset + 5) {
|
||||
//return to previous menu
|
||||
music.playef(11);
|
||||
game.returnmenu();
|
||||
@@ -1482,6 +1488,23 @@ static void menuactionpress(void)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case Menu::clearcustomdatamenu:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
default:
|
||||
music.playef(11);
|
||||
break;
|
||||
case 1:
|
||||
game.deletecustomlevelstats();
|
||||
FILESYSTEM_deleteLevelSaves();
|
||||
music.playef(23);
|
||||
game.flashlight = 5;
|
||||
game.screenshake = 15;
|
||||
break;
|
||||
}
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
case Menu::playmodes:
|
||||
if (game.currentmenuoption == 0 && !game.nocompetitive()) //go to the time trial menu
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user