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.
This commit is contained in:
ge0rdi
2022-11-30 19:02:42 +01:00
parent 7ad33f509e
commit f42980e090

View File

@@ -3235,10 +3235,14 @@ void GetSkinsPath( wchar_t *path )
{
GetModuleFileName(g_Instance,path,_MAX_PATH);
*PathFindFileName(path)=0;
#ifdef BUILD_SETUP
Strcat(path,_MAX_PATH,L"Skins\\");
#else
Strcat(path,_MAX_PATH,L"..\\Skins\\");
#ifndef BUILD_SETUP
if (!PathIsDirectory(path))
{
*PathFindFileName(path) = 0;
Strcat(path,_MAX_PATH,L"..\\Skins\\");
}
#endif
}