OSDN Git Service

[General] Convert sourcecode's CRLF format: DOS(WINDOWS) to Unix, to apply patches...
[csp-qt/common_source_project-fm7.git] / source / src / vm / pcengine / pcengine.h
index 1221732..c356b8e 100644 (file)
@@ -1,99 +1,99 @@
-/*\r
-       NEC-HE PC Engine Emulator 'ePCEngine'\r
-\r
-       Author : Takeda.Toshiya\r
-       Date   : 2012.10.31-\r
-\r
-       [ virtual machine ]\r
-*/\r
-\r
-#ifndef _PCENGINE_H_\r
-#define _PCENGINE_H_\r
-\r
-#define DEVICE_NAME            "NEC-HE PC Engine"\r
-#define CONFIG_NAME            "pcengine"\r
-\r
-#define FRAMES_PER_SEC         60\r
-#define LINES_PER_FRAME        262\r
-#define CPU_CLOCKS             7159090\r
-#define SCREEN_WIDTH           352\r
-#define SCREEN_HEIGHT          238\r
-\r
-#define SUPPORT_SUPER_GFX\r
-#define SUPPORT_BACKUP_RAM\r
-\r
-// device informations for win32\r
-#define USE_CART1\r
-#define USE_STATE\r
-\r
-#include "../../common.h"\r
-\r
-class EMU;\r
-class DEVICE;\r
-class EVENT;\r
-\r
-class HUC6280;\r
-class PCE;\r
-\r
-class FILEIO;\r
-\r
-class VM\r
-{\r
-protected:\r
-       EMU* emu;\r
-       \r
-       // devices\r
-       EVENT* pceevent;\r
-       \r
-       HUC6280* pcecpu;\r
-       PCE* pce;\r
-       \r
-public:\r
-       // ----------------------------------------\r
-       // initialize\r
-       // ----------------------------------------\r
-       \r
-       VM(EMU* parent_emu);\r
-       ~VM();\r
-       \r
-       // ----------------------------------------\r
-       // for emulation class\r
-       // ----------------------------------------\r
-       \r
-       // drive virtual machine\r
-       void reset();\r
-       void run();\r
-       double frame_rate();\r
-       \r
-       // draw screen\r
-       void draw_screen();\r
-       \r
-       // sound generation\r
-       void initialize_sound(int rate, int samples);\r
-       uint16* create_sound(int* extra_frames);\r
-       int sound_buffer_ptr();\r
-       \r
-       // user interface\r
-       void open_cart(int drv, _TCHAR* file_path);\r
-       void close_cart(int drv);\r
-       bool cart_inserted(int drv);\r
-       bool now_skip()\r
-       {\r
-               return false;\r
-       }\r
-       void update_config();\r
-       void save_state(FILEIO* state_fio);\r
-       bool load_state(FILEIO* state_fio);\r
-       \r
-       // ----------------------------------------\r
-       // for each device\r
-       // ----------------------------------------\r
-       \r
-       // devices\r
-       DEVICE* get_device(int id);\r
-       DEVICE* dummy;\r
-       DEVICE* first_device;\r
-       DEVICE* last_device;\r
-};\r
-\r
-#endif\r
+/*
+       NEC-HE PC Engine Emulator 'ePCEngine'
+
+       Author : Takeda.Toshiya
+       Date   : 2012.10.31-
+
+       [ virtual machine ]
+*/
+
+#ifndef _PCENGINE_H_
+#define _PCENGINE_H_
+
+#define DEVICE_NAME            "NEC-HE PC Engine"
+#define CONFIG_NAME            "pcengine"
+
+#define FRAMES_PER_SEC         60
+#define LINES_PER_FRAME        262
+#define CPU_CLOCKS             7159090
+#define SCREEN_WIDTH           352
+#define SCREEN_HEIGHT          238
+
+#define SUPPORT_SUPER_GFX
+#define SUPPORT_BACKUP_RAM
+
+// device informations for win32
+#define USE_CART1
+#define USE_STATE
+
+#include "../../common.h"
+
+class EMU;
+class DEVICE;
+class EVENT;
+
+class HUC6280;
+class PCE;
+
+class FILEIO;
+
+class VM
+{
+protected:
+       EMU* emu;
+       
+       // devices
+       EVENT* pceevent;
+       
+       HUC6280* pcecpu;
+       PCE* pce;
+       
+public:
+       // ----------------------------------------
+       // initialize
+       // ----------------------------------------
+       
+       VM(EMU* parent_emu);
+       ~VM();
+       
+       // ----------------------------------------
+       // for emulation class
+       // ----------------------------------------
+       
+       // drive virtual machine
+       void reset();
+       void run();
+       double frame_rate();
+       
+       // draw screen
+       void draw_screen();
+       
+       // sound generation
+       void initialize_sound(int rate, int samples);
+       uint16* create_sound(int* extra_frames);
+       int sound_buffer_ptr();
+       
+       // user interface
+       void open_cart(int drv, _TCHAR* file_path);
+       void close_cart(int drv);
+       bool cart_inserted(int drv);
+       bool now_skip()
+       {
+               return false;
+       }
+       void update_config();
+       void save_state(FILEIO* state_fio);
+       bool load_state(FILEIO* state_fio);
+       
+       // ----------------------------------------
+       // for each device
+       // ----------------------------------------
+       
+       // devices
+       DEVICE* get_device(int id);
+       DEVICE* dummy;
+       DEVICE* first_device;
+       DEVICE* last_device;
+};
+
+#endif