From b093ca90d3e32aae681cb6bf720d6b2778402f7d Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Sun, 16 Jun 2019 15:12:22 +0200 Subject: [PATCH] Fix issue #14 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. --- dll/local_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/local_storage.cpp b/dll/local_storage.cpp index 80f815c5..fbc543e0 100644 --- a/dll/local_storage.cpp +++ b/dll/local_storage.cpp @@ -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); if (output_size) *output_size = file_size(folder, name); #if defined(STEAM_WIN32) - name = replace_with(name, PATH_SEPARATOR, "/"); + name = replace_with(name, "/", PATH_SEPARATOR); #endif strcpy(output_filename, name.c_str()); return true;