From 583cae8b567e7fada050180e017e94279f6177ff Mon Sep 17 00:00:00 2001 From: InspirationByte Date: Fri, 4 Feb 2022 09:31:45 +0300 Subject: [PATCH] - auto-save profile when high scores are added --- src_rebuild/Game/C/scores.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src_rebuild/Game/C/scores.c b/src_rebuild/Game/C/scores.c index 40733b27..f8e3490c 100644 --- a/src_rebuild/Game/C/scores.c +++ b/src_rebuild/Game/C/scores.c @@ -2,6 +2,7 @@ #include "scores.h" #include "glaunch.h" #include "mission.h" +#include "loadsave.h" SCORE_TABLES ScoreTables; PLAYER_SCORE gPlayerScore; @@ -55,6 +56,10 @@ void AddScoreToTable(SCORE_ENTRY *table, int entry) table->items = gPlayerScore.items; strcpy(table->name, gPlayerScore.name); + +#ifndef PSX + SaveCurrentProfile(1); +#endif } // [D] [T]