mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- auto-save profile when high scores are added
This commit is contained in:
parent
bd16f67cfd
commit
583cae8b56
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user