mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-04 10:41:35 -06:00
Fix mod include directories with backward slashes not working on Linux. (#1444)
This commit is contained in:
@@ -191,7 +191,10 @@ void ModLoader::Init()
|
||||
{
|
||||
std::string includeDirU8 = modIni.getString("Main", fmt::format("IncludeDir{}", j), "");
|
||||
if (!includeDirU8.empty())
|
||||
{
|
||||
std::replace(includeDirU8.begin(), includeDirU8.end(), '\\', '/');
|
||||
mod.includeDirs.emplace_back(modDirectoryPath / std::u8string_view((const char8_t*)includeDirU8.c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
if (!foundModSaveFilePath)
|
||||
|
||||
Reference in New Issue
Block a user