From 41b8dbdd760b6d599d9f0f9ea78ff79941bbb1e5 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 4 Aug 2019 12:48:41 -0500 Subject: [PATCH] [Core] Fix SaveConfig on non-Windows. --- src/xenia/config.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/config.cc b/src/xenia/config.cc index 2db73d82a..64d239249 100644 --- a/src/xenia/config.cc +++ b/src/xenia/config.cc @@ -117,7 +117,11 @@ void SaveConfig() { // save the config file xe::filesystem::CreateParentFolder(config_path); std::ofstream file; +#if XE_PLATFORM_WIN32 file.open(config_path, std::ios::out | std::ios::trunc); +#else + file.open(xe::to_string(config_path), std::ios::out | std::ios::trunc); +#endif file << output.str(); file.close(); }