OSDN Git Service

[General] Add log level entries: EMU_LOG_FOO at config.h.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 28 Jul 2015 09:40:55 +0000 (18:40 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 28 Jul 2015 09:40:55 +0000 (18:40 +0900)
source/src/common.h
source/src/config.h

index 32b790f..62b6096 100644 (file)
@@ -46,6 +46,8 @@
 # endif
 #endif
 
+
+
 #if defined(_USE_AGAR) || defined(_USE_SDL) || defined(_USE_QT)
 
 #ifndef uint8
index ceae0b2..7b6f736 100644 (file)
 #include "vm/vm.h"
 #include "fileio.h"
 
+// LOG COMMAND
+#define EMU_LOG_CPU1        0x00000001
+#define EMU_LOG_CPU2        0x00000002
+#define EMU_LOG_CPU3        0x00000004
+#define EMU_LOG_CPU4        0x00000008
+#define EMU_LOG_FLOPPY      0x00000010
+#define EMU_LOG_CMT         0x00000020
+#define EMU_LOG_QD          0x00000040
+#define EMU_LOG_CART        0x00000080
+#define EMU_LOG_BINARY      0x00000100
+#define EMU_LOG_LASERDISC   0x00000200
+#define EMU_LOG_DISPLAY     0x00001000
+#define EMU_LOG_SOUND       0x00002000
+#define EMU_LOG_KEYBOARD    0x00004000
+#define EMU_LOG_IO          0x00008000
+#define EMU_LOG_MEMORY      0x00010000
+#define EMU_LOG_USR1        0x00020000
+#define EMU_LOG_USR2        0x00040000
+#define EMU_LOG_USR3        0x00080000
+#define EMU_LOG_USR4        0x00100000
+#define EMU_LOG_USR5        0x00200000
+#define EMU_LOG_USR6        0x00400000
+#define EMU_LOG_USR7        0x00800000
+#define EMU_LOG_USR8        0x01000000
+#define EMU_LOG_USR9        0x02000000
+#define EMU_LOG_USR10       0x04000000
+#define EMU_LOG_GUI         0x08000000
+#define EMU_LOG_DEBUG       0x10000000
+#define EMU_LOG_INFO        0x20000000
+#define EMU_LOG_WARNING     0x40000000
+#define EMU_LOG_GENERAL     0x80000000
 
 #define MAX_HISTORY    8
 
@@ -149,8 +180,6 @@ typedef struct {
 #ifdef USE_SCANLINE
        bool scan_line;
 #endif
-       //BOOL cmt_sound;
-       //int  cmt_volume;
        // sound
        int sound_frequency;
        int sound_latency;