- auto-save profile when high scores are added

This commit is contained in:
InspirationByte 2022-02-04 09:31:45 +03:00
parent bd16f67cfd
commit 583cae8b56

View File

@ -2,6 +2,7 @@
#include "scores.h" #include "scores.h"
#include "glaunch.h" #include "glaunch.h"
#include "mission.h" #include "mission.h"
#include "loadsave.h"
SCORE_TABLES ScoreTables; SCORE_TABLES ScoreTables;
PLAYER_SCORE gPlayerScore; PLAYER_SCORE gPlayerScore;
@ -55,6 +56,10 @@ void AddScoreToTable(SCORE_ENTRY *table, int entry)
table->items = gPlayerScore.items; table->items = gPlayerScore.items;
strcpy(table->name, gPlayerScore.name); strcpy(table->name, gPlayerScore.name);
#ifndef PSX
SaveCurrentProfile(1);
#endif
} }
// [D] [T] // [D] [T]