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 "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]
|
||||||
|
Loading…
Reference in New Issue
Block a user