mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Correctly implement FindPluginPath for Windows
This commit is contained in:
parent
229a6bc788
commit
1f5f9874d9
|
@ -8,7 +8,9 @@
|
|||
#include "../PluginAPI.h"
|
||||
#include "../RSP.h"
|
||||
|
||||
#if defined(OS_MAC_OS_X)
|
||||
#if defined(OS_WINDOWS)
|
||||
EXTERN_C IMAGE_DOS_HEADER __ImageBase;
|
||||
#elif defined(OS_MAC_OS_X)
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
|
@ -69,7 +71,7 @@ void PluginAPI::FindPluginPath(wchar_t * _strPath)
|
|||
if (_strPath == nullptr)
|
||||
return;
|
||||
#ifdef OS_WINDOWS
|
||||
GetModuleFileNameW(nullptr, _strPath, PLUGIN_PATH_SIZE);
|
||||
GetModuleFileNameW((HINSTANCE)&__ImageBase, _strPath, PLUGIN_PATH_SIZE);
|
||||
_cutLastPathSeparator(_strPath);
|
||||
#elif defined(OS_LINUX)
|
||||
std::ifstream maps;
|
||||
|
|
Loading…
Reference in New Issue
Block a user