mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 13:27:58 +03:00
Fix mod include directories with backward slashes not working on Linux. (#1444)
This commit is contained in:
parent
824405b236
commit
7866765ab0
1 changed files with 3 additions and 0 deletions
|
@ -191,7 +191,10 @@ void ModLoader::Init()
|
||||||
{
|
{
|
||||||
std::string includeDirU8 = modIni.getString("Main", fmt::format("IncludeDir{}", j), "");
|
std::string includeDirU8 = modIni.getString("Main", fmt::format("IncludeDir{}", j), "");
|
||||||
if (!includeDirU8.empty())
|
if (!includeDirU8.empty())
|
||||||
|
{
|
||||||
|
std::replace(includeDirU8.begin(), includeDirU8.end(), '\\', '/');
|
||||||
mod.includeDirs.emplace_back(modDirectoryPath / std::u8string_view((const char8_t*)includeDirU8.c_str()));
|
mod.includeDirs.emplace_back(modDirectoryPath / std::u8string_view((const char8_t*)includeDirU8.c_str()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!foundModSaveFilePath)
|
if (!foundModSaveFilePath)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue