44 |
|
#include "vm_alloc.h" |
45 |
|
#include "sigsegv.h" |
46 |
|
#include "util_windows.h" |
47 |
+ |
#include "kernel_windows.h" |
48 |
|
|
49 |
|
#define DEBUG 0 |
50 |
|
#include "debug.h" |
206 |
|
if (!check_drivers()) |
207 |
|
QuitEmulator(); |
208 |
|
|
209 |
+ |
// Load win32 libraries |
210 |
+ |
KernelInit(); |
211 |
+ |
|
212 |
|
// FIXME: default to DIB driver |
213 |
|
if (getenv("SDL_VIDEODRIVER") == NULL) |
214 |
|
putenv("SDL_VIDEODRIVER=windib"); |
457 |
|
// Exit preferences |
458 |
|
PrefsExit(); |
459 |
|
|
460 |
+ |
// Release win32 libraries |
461 |
+ |
KernelExit(); |
462 |
+ |
|
463 |
|
#ifdef ENABLE_MON |
464 |
|
// Exit mon |
465 |
|
mon_exit(); |