[Core] Fix SaveConfig on non-Windows.

This commit is contained in:
gibbed 2019-08-04 12:48:41 -05:00
parent 13a67d64a9
commit 41b8dbdd76
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}