OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / fp1100 / rompack.h
index 11f6797..4a86d12 100644 (file)
@@ -1,31 +1,37 @@
-/*\r
-       CASIO FP-1100 Emulator 'eFP-1100'\r
-\r
-       Author : Takeda.Toshiya\r
-       Date   : 2010.06.18-\r
-\r
-       [ rom pack ]\r
-*/\r
-\r
-#ifndef _ROMPACK_H_\r
-#define _ROMPACK_H_\r
-\r
-#include "../vm.h"\r
-#include "../../emu.h"\r
-#include "../device.h"\r
-\r
-class ROMPACK : public DEVICE\r
-{\r
-private:\r
-       uint8 rom[0x8000];\r
-       \r
-public:\r
-       ROMPACK(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}\r
-       ~ROMPACK() {}\r
-       \r
-       // common functions\r
-       void initialize();\r
-       uint32 read_io8(uint32 addr);\r
-};\r
-\r
-#endif\r
+/*
+       CASIO FP-1100 Emulator 'eFP-1100'
+
+       Author : Takeda.Toshiya
+       Date   : 2010.06.18-
+
+       [ rom pack ]
+*/
+
+#ifndef _ROMPACK_H_
+#define _ROMPACK_H_
+
+#include "../vm.h"
+#include "../../emu.h"
+#include "../device.h"
+
+namespace FP1100 {
+       
+class ROMPACK : public DEVICE
+{
+private:
+       uint8_t rom[0x8000];
+       
+public:
+       ROMPACK(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("ROM Pack"));
+       }
+       ~ROMPACK() {}
+       
+       // common functions
+       void initialize();
+       uint32_t read_io8(uint32_t addr);
+};
+
+}
+#endif