From 13f6e34ebe77ab92a76cfa2ec7fc557973e3dafb Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Wed, 20 Sep 2023 01:27:25 +0100 Subject: [PATCH] Use an empty path for ini-based path detection Avoids search paths duplication (`"./"` vs `""`) --- Source/utils/paths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/utils/paths.cpp b/Source/utils/paths.cpp index e80343635..2f6415bea 100644 --- a/Source/utils/paths.cpp +++ b/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