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:
Misa
2021-08-11 20:54:02 -07:00
parent 3a2265ef0d
commit a13d26d866
6 changed files with 78 additions and 3 deletions

View File

@@ -249,9 +249,15 @@ static void menurender(void)
{
//Clear Data
graphics.bigprint(-1, 30, "Clear Data", tr, tg, tb, true);
graphics.Print(-1, 65, "Delete your save data", tr, tg, tb, true);
graphics.Print(-1, 65, "Delete your main game save data", tr, tg, tb, true);
graphics.Print(-1, 75, "and unlocked play modes", tr, tg, tb, true);
}
else if (game.currentmenuoption == gameplayoptionsoffset + 4)
{
graphics.bigprint(-1, 30, "Clear Data", tr, tg, tb, true);
graphics.Print(-1, 65, "Delete your custom level save data", tr, tg, tb, true);
graphics.Print(-1, 75, "and completion stars", tr, tg, tb, true);
}
break;
}
@@ -543,6 +549,7 @@ static void menurender(void)
graphics.Print( -1, 110, "delete your current saves...", tr, tg, tb, true);
break;
case Menu::cleardatamenu:
case Menu::clearcustomdatamenu:
graphics.Print( -1, 100, "Are you sure you want to", tr, tg, tb, true);
graphics.Print( -1, 110, "delete all your saved data?", tr, tg, tb, true);
break;