From a044940d5071411fd9ec53f980d245386512a9df Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sat, 8 Jul 2006 21:14:22 +0000 Subject: [PATCH] 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 --- engine/client/sys_morphos.c | 6 ++++++ engine/common/qvm.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/client/sys_morphos.c b/engine/client/sys_morphos.c index 9a5c64009..480ae50b9 100755 --- a/engine/client/sys_morphos.c +++ b/engine/client/sys_morphos.c @@ -14,7 +14,9 @@ int __stack = 4*1024*1024; +#if I_AM_BIGFOOT struct Library *DynLoadBase; +#endif #ifndef CLIENTONLY qboolean isDedicated; @@ -22,11 +24,13 @@ qboolean isDedicated; static void Sys_Shutdown() { +#if I_AM_BIGFOOT if(DynLoadBase) { CloseLibrary(DynLoadBase); DynLoadBase = 0; } +#endif } void Sys_Quit (void) @@ -277,7 +281,9 @@ int main(int argc, char **argv) if (parms.membase == 0) Sys_Error("Can't allocated %d bytes\n", parms.memsize); +#if I_AM_BIGFOOT DynLoadBase = OpenLibrary("dynload.library", 0); +#endif Host_Init(&parms); diff --git a/engine/common/qvm.c b/engine/common/qvm.c index 302dfe5aa..46abb5792 100644 --- a/engine/common/qvm.c +++ b/engine/common/qvm.c @@ -131,7 +131,7 @@ void Sys_UnloadDLL(void *handle) } } #else -#ifdef __MORPHOS__ +#if defined(__MORPHOS__) && I_AM_BIGFOOT #include #else #include @@ -143,7 +143,7 @@ void *Sys_LoadDLL(const char *name, void **vmMain, int (EXPORT_FN *syscall)(int char dllname[MAX_OSPATH]; void *hVM; -#ifdef __MORPHOS__ +#if defined(__MORPHOS__) && I_AM_BIGFOOT if (DynLoadBase == 0) return 0; #endif