mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-25 05:51:15 +00:00
Fix shared library loading for x86_64
Library handles are "void *" on posix.
This commit is contained in:
parent
9212bc9b67
commit
17dd12384c
3 changed files with 8 additions and 8 deletions
|
@ -42,7 +42,7 @@ static idStr Maya_Error;
|
|||
|
||||
static exporterInterface_t Maya_ConvertModel = NULL;
|
||||
static exporterShutdown_t Maya_Shutdown = NULL;
|
||||
static int importDLL = 0;
|
||||
static uintptr_t importDLL = 0;
|
||||
|
||||
bool idModelExport::initialized = false;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ static idStr Maya_Error;
|
|||
|
||||
static exporterInterface_t Maya_ConvertModel = NULL;
|
||||
static exporterShutdown_t Maya_Shutdown = NULL;
|
||||
static int importDLL = 0;
|
||||
static uintptr_t importDLL = 0;
|
||||
|
||||
bool idModelExport::initialized = false;
|
||||
|
||||
|
|
|
@ -331,9 +331,9 @@ const char * Sys_GetCallStackCurAddressStr( int depth );
|
|||
void Sys_ShutdownSymbols( void );
|
||||
|
||||
// DLL loading, the path should be a fully qualified OS path to the DLL file to be loaded
|
||||
int Sys_DLL_Load( const char *dllName );
|
||||
void * Sys_DLL_GetProcAddress( int dllHandle, const char *procName );
|
||||
void Sys_DLL_Unload( int dllHandle );
|
||||
uintptr_t Sys_DLL_Load( const char *dllName );
|
||||
void * Sys_DLL_GetProcAddress( uintptr_t dllHandle, const char *procName );
|
||||
void Sys_DLL_Unload( uintptr_t dllHandle );
|
||||
|
||||
// event generation
|
||||
void Sys_GenerateEvents( void );
|
||||
|
@ -563,9 +563,9 @@ public:
|
|||
virtual const char * GetCallStackCurStr( int depth ) = 0;
|
||||
virtual void ShutdownSymbols( void ) = 0;
|
||||
|
||||
virtual int DLL_Load( const char *dllName ) = 0;
|
||||
virtual void * DLL_GetProcAddress( int dllHandle, const char *procName ) = 0;
|
||||
virtual void DLL_Unload( int dllHandle ) = 0;
|
||||
virtual uintptr_t DLL_Load( const char *dllName ) = 0;
|
||||
virtual void * DLL_GetProcAddress( uintptr_t dllHandle, const char *procName ) = 0;
|
||||
virtual void DLL_Unload( uintptr_t dllHandle ) = 0;
|
||||
virtual void DLL_GetFileName( const char *baseName, char *dllName, int maxLength ) = 0;
|
||||
|
||||
virtual sysEvent_t GenerateMouseButtonEvent( int button, bool down ) = 0;
|
||||
|
|
Loading…
Reference in a new issue