]> 4ch.mooo.com Git - 16.git/blob - src/lib/doslib/hw/dos/dosflavr.c
added a bunch of things~ and midi stuff~
[16.git] / src / lib / doslib / hw / dos / dosflavr.c
1 /* dos.c
2  *
3  * Code to detect the surrounding DOS/Windows environment and support routines to work with it
4  * (C) 2009-2012 Jonathan Campbell.
5  * Hackipedia DOS library.
6  *
7  * This code is licensed under the LGPL.
8  * <insert LGPL legal text here>
9  */
10
11 #ifdef TARGET_WINDOWS
12 # include <windows.h>
13 #endif
14
15 #include <stdio.h>
16 #include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
17 #include <stdlib.h>
18 #include <string.h>
19 #include <stddef.h>
20 #include <unistd.h>
21 #include <malloc.h>
22 #include <assert.h>
23 #include <fcntl.h>
24 #include <dos.h>
25
26 #include <hw/cpu/cpu.h>
27 #include <hw/dos/dos.h>
28 #include <hw/dos/doswin.h>
29 #include <hw/dos/dosntvdm.h>
30
31 const char *windows_emulation_str(uint8_t e) {
32         switch (e) {
33                 case WINEMU_NONE:       return "None";
34                 case WINEMU_WINE:       return "WINE (Wine Is Not an Emulator)";
35                 default:                break;
36         }
37
38         return "?";
39 }
40
41 const char *dos_flavor_str(uint8_t f) {
42         switch (f) {
43                 case DOS_FLAVOR_NONE:           return "None";
44                 case DOS_FLAVOR_MSDOS:          return "MS-DOS";
45                 case DOS_FLAVOR_FREEDOS:        return "FreeDOS";
46         }
47
48         return "?";
49 }
50