Change --no-subdirectories option behavior for game subdirectory

367b57ca8905dde5d4a5ba7d97fa9aa9754863b3 changed how --no-subdirectories worked
Before that commit --no-subdirectories affected only subdirectories under --subdir-game
After that commit it affected subdirectories under --directory

This changes the behavior back to how it was previously
Now --no-subdirectories affects only subdirectories under --subdir-game
This commit is contained in:
Sude 2025-03-02 20:34:05 +02:00
parent cd69de7646
commit d8ec857cd6

View File

@ -324,12 +324,13 @@ std::string gameDetails::makeFilepath(const gameFile& gf, const DirectoryConfig&
{ {
subdir = dirConf.sDLCSubdir + "/" + subdir; subdir = dirConf.sDLCSubdir + "/" + subdir;
} }
}
if (!dirConf.sGameSubdir.empty()) if (!dirConf.sGameSubdir.empty())
{ {
subdir = dirConf.sGameSubdir + "/" + subdir; subdir = dirConf.sGameSubdir + "/" + subdir;
} }
}
std::string gamename = gf.gamename; std::string gamename = gf.gamename;
std::string title = gf.title; std::string title = gf.title;
std::string dlc_gamename; std::string dlc_gamename;