Separated the MZ loader and core DOS VM into dlls/winedos.
diff --git a/miscemu/main.c b/miscemu/main.c
index 5bcb2d6..1fa6f92 100644
--- a/miscemu/main.c
+++ b/miscemu/main.c
@@ -8,6 +8,7 @@
#include "wingdi.h"
#include "winuser.h"
+#include "miscemu.h"
#include "callback.h"
#include "options.h"
#include "dosexe.h"
@@ -34,7 +35,8 @@
{
if (instance == 11) /* try DOS format */
{
- MZ_LoadImage( GetCommandLineA() );
+ if (DPMI_LoadDosSystem())
+ Dosvm.LoadDosExe( GetCommandLineA() );
/* if we get back here it failed */
instance = GetLastError();
}