mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user