mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
Actually delete saves/unlock.vvv in deletestats()
Having to blank everything out in the stats file is very kludge-y.
This commit is contained in:
parent
2076898020
commit
7df42242e7
1 changed files with 17 additions and 11 deletions
|
@ -4215,21 +4215,27 @@ void Game::gethardestroom()
|
||||||
|
|
||||||
void Game::deletestats()
|
void Game::deletestats()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 25; i++)
|
if (!FILESYSTEM_delete("saves/unlock.vvv"))
|
||||||
{
|
{
|
||||||
unlock[i] = false;
|
puts("Error deleting saves/unlock.vvv");
|
||||||
unlocknotify[i] = false;
|
|
||||||
}
|
}
|
||||||
for (int i = 0; i < 6; i++)
|
else
|
||||||
{
|
{
|
||||||
besttimes[i] = -1;
|
for (int i = 0; i < 25; i++)
|
||||||
besttrinkets[i] = -1;
|
{
|
||||||
bestlives[i] = -1;
|
unlock[i] = false;
|
||||||
bestrank[i] = -1;
|
unlocknotify[i] = false;
|
||||||
|
}
|
||||||
|
for (int i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
besttimes[i] = -1;
|
||||||
|
besttrinkets[i] = -1;
|
||||||
|
bestlives[i] = -1;
|
||||||
|
bestrank[i] = -1;
|
||||||
|
}
|
||||||
|
graphics.setflipmode = false;
|
||||||
|
stat_trinkets = 0;
|
||||||
}
|
}
|
||||||
graphics.setflipmode = false;
|
|
||||||
stat_trinkets = 0;
|
|
||||||
savestats();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::unlocknum( int t )
|
void Game::unlocknum( int t )
|
||||||
|
|
Loading…
Reference in a new issue