1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00
This commit fixes game crash in ETS2.
The parameter order is wrong, 1st param is what to replace and 2nd param is with what to replace.
This commit is contained in:
Nemirtingas 2019-06-16 15:12:22 +02:00
parent 32b8a8b169
commit b093ca90d3

View file

@ -636,7 +636,7 @@ bool Local_Storage::iterate_file(std::string folder, int index, char *output_fil
std::string name = desanitize_file_name(files[index].name); std::string name = desanitize_file_name(files[index].name);
if (output_size) *output_size = file_size(folder, name); if (output_size) *output_size = file_size(folder, name);
#if defined(STEAM_WIN32) #if defined(STEAM_WIN32)
name = replace_with(name, PATH_SEPARATOR, "/"); name = replace_with(name, "/", PATH_SEPARATOR);
#endif #endif
strcpy(output_filename, name.c_str()); strcpy(output_filename, name.c_str());
return true; return true;