Browse Source

Use paths::GetBasePath() so it can be freed

pull/7987/head
staphen 11 months ago committed by Anders Jenbo
parent
commit
d024381e52
  1. 2
      Source/engine/assets.cpp

2
Source/engine/assets.cpp

@ -491,7 +491,7 @@ void LoadModArchives(std::span<const std::string_view> modnames)
if (FileExists(targetPath)) {
OverridePaths.emplace_back(targetPath);
}
targetPath = StrCat(SDL_GetBasePath(), "mods" DIRECTORY_SEPARATOR_STR, modname, DIRECTORY_SEPARATOR_STR);
targetPath = StrCat(paths::BasePath(), "mods" DIRECTORY_SEPARATOR_STR, modname, DIRECTORY_SEPARATOR_STR);
if (FileExists(targetPath)) {
OverridePaths.emplace_back(targetPath);
}

Loading…
Cancel
Save