Browse Source

Use an empty path for ini-based path detection

Avoids search paths duplication (`"./"` vs `""`)
pull/6642/head
Gleb Mazovetskiy 3 years ago
parent
commit
13f6e34ebe
  1. 4
      Source/utils/paths.cpp

4
Source/utils/paths.cpp

@ -84,7 +84,7 @@ const std::string &PrefPath()
prefPath = FromSDL(SDL_GetPrefPath("diasurgical", "devilution"));
#if !defined(__amigaos__)
if (FileExistsAndIsWriteable("diablo.ini")) {
prefPath = std::string("." DIRECTORY_SEPARATOR_STR);
prefPath = std::string();
}
#endif
#endif
@ -103,7 +103,7 @@ const std::string &ConfigPath()
configPath = FromSDL(SDL_GetPrefPath("diasurgical", "devilution"));
#if !defined(__amigaos__)
if (FileExistsAndIsWriteable("diablo.ini")) {
configPath = std::string("." DIRECTORY_SEPARATOR_STR);
configPath = std::string();
}
#endif
#endif

Loading…
Cancel
Save