Skip to content

Commit 583cae8

Browse files
committed
- auto-save profile when high scores are added
1 parent bd16f67 commit 583cae8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src_rebuild/Game/C/scores.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "scores.h"
33
#include "glaunch.h"
44
#include "mission.h"
5+
#include "loadsave.h"
56

67
SCORE_TABLES ScoreTables;
78
PLAYER_SCORE gPlayerScore;
@@ -55,6 +56,10 @@ void AddScoreToTable(SCORE_ENTRY *table, int entry)
5556
table->items = gPlayerScore.items;
5657

5758
strcpy(table->name, gPlayerScore.name);
59+
60+
#ifndef PSX
61+
SaveCurrentProfile(1);
62+
#endif
5863
}
5964

6065
// [D] [T]

0 commit comments

Comments
 (0)