You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07:00
fix #3587: convert CP1252 to UTF8 when importing highscores
This commit is contained in:
@@ -379,7 +379,7 @@ static bool scenario_scores_legacy_load(const utf8 *path)
|
|||||||
// Set new highscore
|
// Set new highscore
|
||||||
if (highscore != NULL) {
|
if (highscore != NULL) {
|
||||||
highscore->fileName = _strdup(scBasic.path);
|
highscore->fileName = _strdup(scBasic.path);
|
||||||
highscore->name = _strdup(scBasic.completed_by);
|
highscore->name = win1252_to_utf8_alloc(scBasic.completed_by);
|
||||||
highscore->company_value = (money32)scBasic.company_value;
|
highscore->company_value = (money32)scBasic.company_value;
|
||||||
highscore->timestamp = DATETIME64_MIN;
|
highscore->timestamp = DATETIME64_MIN;
|
||||||
highscoresDirty = true;
|
highscoresDirty = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user