1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

convert more platform functions over to utf8 and close #1713

This commit is contained in:
IntelOrca
2015-08-04 21:41:45 +01:00
parent e0769800e7
commit be4ee45d66
8 changed files with 236 additions and 109 deletions

View File

@@ -158,7 +158,7 @@ void title_sequence_duplicate_preset(int duplicate, const char *name)
strncat(path, &separator, 1);
strcat(path, gConfigTitleSequences.presets[preset].saves[i]);
platform_file_copy(srcPath, path);
platform_file_copy(srcPath, path, false);
}
if (loadmm) {
@@ -237,7 +237,7 @@ void title_sequence_add_save(int preset, const char *path, const char *newName)
// Add the appropriate extension if needed
if (_stricmp(extension, ".sv6") != 0 && _stricmp(extension, ".sc6") != 0)
strcat(newPath, ".sv6");
platform_file_copy(path, newPath);
platform_file_copy(path, newPath, false);
gConfigTitleSequences.presets[preset].num_saves++;
gConfigTitleSequences.presets[preset].saves = realloc(gConfigTitleSequences.presets[preset].saves, sizeof(char[TITLE_SEQUENCE_MAX_SAVE_LENGTH]) * (size_t)gConfigTitleSequences.presets[preset].num_saves);