Skip to content

Commit f42980e

Browse files
committed
Make debugging more skin friendly
Debug StartMenuDLL used to not find skins when put to Open-Shell installation folder. Now it will try to look for skins in default location (Skins folder in the same folder as DLL) and use alternative (Skins folder one level up) if not present.
1 parent 7ad33f5 commit f42980e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Src/StartMenu/StartMenuDLL/SkinManager.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3235,10 +3235,14 @@ void GetSkinsPath( wchar_t *path )
32353235
{
32363236
GetModuleFileName(g_Instance,path,_MAX_PATH);
32373237
*PathFindFileName(path)=0;
3238-
#ifdef BUILD_SETUP
32393238
Strcat(path,_MAX_PATH,L"Skins\\");
3240-
#else
3241-
Strcat(path,_MAX_PATH,L"..\\Skins\\");
3239+
3240+
#ifndef BUILD_SETUP
3241+
if (!PathIsDirectory(path))
3242+
{
3243+
*PathFindFileName(path) = 0;
3244+
Strcat(path,_MAX_PATH,L"..\\Skins\\");
3245+
}
32423246
#endif
32433247
}
32443248

0 commit comments

Comments
 (0)