mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-08-04 06:35:32 +02:00
make sure mod path is absolute and normalized for current OS
This commit is contained in:
parent
44f4e400de
commit
2800264040
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue