Browse Source

Add `paths::ConfigPath` to the MPQ search list

This mitigates the situation where providing `--save-dir`
result in no ~/.local/share/diasurgical/devilutionx in the search path
pull/5656/head
Gleb Mazovetskiy 3 years ago
parent
commit
f085af70ca
  1. 3
      Source/init.cpp

3
Source/init.cpp

@ -117,6 +117,9 @@ std::vector<std::string> GetMPQSearchPaths()
paths.push_back(paths::PrefPath());
if (paths[0] == paths[1])
paths.pop_back();
paths.push_back(paths::ConfigPath());
if (paths[0] == paths[1] || (paths.size() == 3 && (paths[0] == paths[2] || paths[1] == paths[2])))
paths.pop_back();
#if defined(__unix__) && !defined(__ANDROID__)
// `XDG_DATA_HOME` is usually the root path of `paths::PrefPath()`, so we only

Loading…
Cancel
Save