Commit f4ec044e authored by Dino Bollinger's avatar Dino Bollinger
Browse files

Duke3D: Fix GTK window searching wrong path for custom game directories

Also made it respect the user_profiles_disabled file.

Fixes #73
parent 891bbb92
......@@ -278,7 +278,11 @@ static unsigned char GetModsDirNames(GtkListStore *list)
if ((homedir = Bgethomedir()))
{
Bsnprintf(pdir, sizeof(pdir), "%s/" ".eduke32", homedir);
if (buildvfs_exists("user_profiles_disabled"))
buildvfs_getcwd(pdir, sizeof(pdir));
else
Bsnprintf(pdir, sizeof(pdir), "%s/" ".config/eduke32", homedir);
dirs = klistpath(pdir, "*", BUILDVFS_FIND_DIR);
for (; dirs != NULL; dirs=dirs->next)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment