[Core] Fix SaveConfig on non-Windows.
This commit is contained in:
parent
13a67d64a9
commit
41b8dbdd76
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue