diff --git a/Descent3/OsirisLoadandBind.cpp b/Descent3/OsirisLoadandBind.cpp index e503704b..96656e4a 100644 --- a/Descent3/OsirisLoadandBind.cpp +++ b/Descent3/OsirisLoadandBind.cpp @@ -427,7 +427,7 @@ bool Show_osiris_debug = false; -#define MAX_LOADED_MODULES 64 // maximum number of dlls that can be loaded at a time +#define MAX_LOADED_MODULES 96 // maximum number of dlls that can be loaded at a time #define OSIMF_INUSE 0x1 // slot in use #define OSIMF_LEVEL 0x2 // level module diff --git a/Descent3/init.cpp b/Descent3/init.cpp index 5b2431d1..d6b338f3 100644 --- a/Descent3/init.cpp +++ b/Descent3/init.cpp @@ -1533,6 +1533,13 @@ void InitIOSystems(bool editor) { ddio_MakePath(fullname, LocalD3Dir, "extra13.hog", NULL); extra13_hid = cf_OpenLibrary(fullname); + // last library opened is the first to be searched for DLLs, so put this one + // at the end to find our newly build script DLLs first +#ifdef _WIN32 + ddio_MakePath(fullname, LocalD3Dir, "d3-win.hog", NULL); + sys_hid = cf_OpenLibrary(fullname); +#endif + // Check to see if there is a -mission command line option // if there is, attempt to open that hog/mn3 so it can override such // things as the mainmenu movie, or loading screen