mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-21 18:40:25 +10:00
Remove GetDocRelativePath function
Help is always located in the same folder as binary that is using it.
This commit is contained in:
@@ -18,12 +18,6 @@
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef BUILD_SETUP
|
||||
#define DOC_PATH L""
|
||||
#else
|
||||
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Read/Write lock for accessing the settings. Can't be acquired recursively. Only the main UI thread (the one displaying the settings UI)
|
||||
@@ -2185,7 +2179,7 @@ bool HasHelp( void )
|
||||
GetModuleFileName(_AtlBaseModule.GetResourceInstance(),path,_countof(path));
|
||||
*PathFindFileName(path)=0;
|
||||
wchar_t topic[_MAX_PATH];
|
||||
Sprintf(topic,_countof(topic),L"%s%sOpenShell.chm",path,GetDocRelativePath());
|
||||
Sprintf(topic,_countof(topic),L"%sOpenShell.chm",path);
|
||||
return (GetFileAttributes(topic)!=INVALID_FILE_ATTRIBUTES);
|
||||
}
|
||||
|
||||
@@ -2195,7 +2189,7 @@ void ShowHelp( void )
|
||||
GetModuleFileName(_AtlBaseModule.GetResourceInstance(),path,_countof(path));
|
||||
*PathFindFileName(path)=0;
|
||||
wchar_t topic[_MAX_PATH];
|
||||
Sprintf(topic,_countof(topic),L"%s%sOpenShell.chm::/%s.html",path,GetDocRelativePath(),PathFindFileName(g_SettingsManager.GetRegPath()));
|
||||
Sprintf(topic,_countof(topic),L"%sOpenShell.chm::/%s.html",path,PathFindFileName(g_SettingsManager.GetRegPath()));
|
||||
HtmlHelp(GetDesktopWindow(),topic,HH_DISPLAY_TOPIC,NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,6 @@ void SelectSettingsTab( int tab, bool bAdvanced, const CSetting *pSelect );
|
||||
void UpdateSettings( void ); // implemented by the user
|
||||
void UpgradeSettings( bool bShared ); // implemented by the user (called when converting 3.0 settings to 4.0)
|
||||
void ClosingSettings( HWND hWnd, int flags, int command ); // implemented by the user
|
||||
const wchar_t *GetDocRelativePath( void ); // implemented by the user
|
||||
void SettingChangedCallback( const CSetting *pSetting ); // implemented by the user
|
||||
bool IsSettingsMessage( MSG *msg );
|
||||
bool ImportSettingsXml( const wchar_t *fname );
|
||||
|
||||
Reference in New Issue
Block a user