mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-25 09:54:15 +08:00
make sure mod path is absolute and normalized for current OS
This commit is contained in:
parent
44f4e400de
commit
2800264040
@ -822,6 +822,9 @@ static void try_parse_mods_file(class Settings *settings_client, Settings *setti
|
||||
newMod.path = mod.value().value("path", std::string(""));
|
||||
if (newMod.path.empty()) {
|
||||
newMod.path = mods_folder + PATH_SEPARATOR + std::string(mod.key());
|
||||
} else {
|
||||
// make sure the path is normalized for current OS, and absolute
|
||||
newMod.path = std::filesystem::absolute(newMod.path).u8string();
|
||||
}
|
||||
|
||||
newMod.fileType = k_EWorkshopFileTypeCommunity;
|
||||
|
Loading…
x
Reference in New Issue
Block a user