mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Fix mod installation in non latin folders. Use OSString for consistency.
Refse7ab22286eRefs880a797ce0Refs404e1a9a4aRefs52baaa4bbdThis was SVN commit r27055.
This commit is contained in:
+6
-1
@@ -33,6 +33,11 @@
|
||||
#include "scriptinterface/ScriptExceptions.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
|
||||
#if !OS_WIN
|
||||
#include "lib/os_path.h"
|
||||
#include "lib/path.h"
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/classification.hpp>
|
||||
@@ -55,7 +60,7 @@ bool LoadModJSON(const PIVFS& vfs, OsPath modsPath, OsPath mod, std::string& tex
|
||||
#if OS_WIN
|
||||
const std::filesystem::path modJsonPath = (modsPath / mod / L"mod.json").fileSystemPath();
|
||||
#else
|
||||
const std::string modJsonPath = (modsPath / mod / L"mod.json").string8();
|
||||
const Path::String modJsonPath = OsString(modsPath / mod / L"mod.json").c_str();
|
||||
#endif
|
||||
// Attempt to open mod.json first.
|
||||
std::ifstream modjson(modJsonPath);
|
||||
|
||||
Reference in New Issue
Block a user