Merge pull request #3219 from ZehMatt/plugin-dirs
Add support for plugins in sub directoriesdevelopment
commit
bba369d607
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,6 @@ struct PLUG_DATA
|
|||
{
|
||||
char plugpath[MAX_PATH];
|
||||
char plugname[MAX_PATH];
|
||||
bool isLoaded;
|
||||
HINSTANCE hPlugin;
|
||||
PLUGINIT pluginit;
|
||||
PLUGSTOP plugstop;
|
||||
|
@ -67,7 +66,7 @@ struct PLUG_FORMATFUNCTION
|
|||
};
|
||||
|
||||
//plugin management functions
|
||||
bool pluginload(const char* pluginname, bool loadall = false);
|
||||
bool pluginload(const char* pluginname);
|
||||
bool pluginunload(const char* pluginname, bool unloadall = false);
|
||||
void pluginloadall(const char* pluginDir);
|
||||
void pluginunloadall();
|
||||
|
|
|
@ -319,7 +319,7 @@ static VOID CALLBACK MyLdrDllNotification(
|
|||
|
||||
typedef BOOL(WINAPI* pfnSetDefaultDllDirectories)(DWORD DirectoryFlags);
|
||||
typedef BOOL(WINAPI* pfnSetDllDirectoryW)(LPCWSTR lpPathName);
|
||||
typedef BOOL(WINAPI* pfnAddDllDirectory)(LPCWSTR lpPathName);
|
||||
typedef PVOID(WINAPI* pfnAddDllDirectory)(LPCWSTR lpPathName);
|
||||
|
||||
static pfnSetDefaultDllDirectories pSetDefaultDllDirectories;
|
||||
static pfnSetDllDirectoryW pSetDllDirectoryW;
|
||||
|
|
Loading…
Reference in New Issue