Disable dynload support for anyone but me since it doesn't work for the general public anyway.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2340 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
cb447fa3f7
commit
a044940d50
2 changed files with 8 additions and 2 deletions
|
@ -14,7 +14,9 @@
|
||||||
|
|
||||||
int __stack = 4*1024*1024;
|
int __stack = 4*1024*1024;
|
||||||
|
|
||||||
|
#if I_AM_BIGFOOT
|
||||||
struct Library *DynLoadBase;
|
struct Library *DynLoadBase;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CLIENTONLY
|
#ifndef CLIENTONLY
|
||||||
qboolean isDedicated;
|
qboolean isDedicated;
|
||||||
|
@ -22,11 +24,13 @@ qboolean isDedicated;
|
||||||
|
|
||||||
static void Sys_Shutdown()
|
static void Sys_Shutdown()
|
||||||
{
|
{
|
||||||
|
#if I_AM_BIGFOOT
|
||||||
if(DynLoadBase)
|
if(DynLoadBase)
|
||||||
{
|
{
|
||||||
CloseLibrary(DynLoadBase);
|
CloseLibrary(DynLoadBase);
|
||||||
DynLoadBase = 0;
|
DynLoadBase = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sys_Quit (void)
|
void Sys_Quit (void)
|
||||||
|
@ -277,7 +281,9 @@ int main(int argc, char **argv)
|
||||||
if (parms.membase == 0)
|
if (parms.membase == 0)
|
||||||
Sys_Error("Can't allocated %d bytes\n", parms.memsize);
|
Sys_Error("Can't allocated %d bytes\n", parms.memsize);
|
||||||
|
|
||||||
|
#if I_AM_BIGFOOT
|
||||||
DynLoadBase = OpenLibrary("dynload.library", 0);
|
DynLoadBase = OpenLibrary("dynload.library", 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
Host_Init(&parms);
|
Host_Init(&parms);
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ void Sys_UnloadDLL(void *handle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#ifdef __MORPHOS__
|
#if defined(__MORPHOS__) && I_AM_BIGFOOT
|
||||||
#include <proto/dynload.h>
|
#include <proto/dynload.h>
|
||||||
#else
|
#else
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
@ -143,7 +143,7 @@ void *Sys_LoadDLL(const char *name, void **vmMain, int (EXPORT_FN *syscall)(int
|
||||||
char dllname[MAX_OSPATH];
|
char dllname[MAX_OSPATH];
|
||||||
void *hVM;
|
void *hVM;
|
||||||
|
|
||||||
#ifdef __MORPHOS__
|
#if defined(__MORPHOS__) && I_AM_BIGFOOT
|
||||||
if (DynLoadBase == 0)
|
if (DynLoadBase == 0)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue