OSDN Git Service

[VM] Apply VM_TEMPLATE to all VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc100 / pc100.cpp
index 51b97df..ed4352f 100644 (file)
@@ -38,7 +38,7 @@
 // initialize
 // ----------------------------------------------------------------------------
 
-VM::VM(EMU* parent_emu) : emu(parent_emu)
+VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
 {
        // create devices
        first_device = last_device = NULL;
@@ -337,11 +337,13 @@ void VM::update_config()
 #define STATE_VERSION  3
 
 #include "../../statesub.h"
+#include "../../qt/gui/csp_logger.h"
+extern CSP_Logger DLL_PREFIX_I *csp_logger;
 
 void VM::decl_state(void)
 {
-       state_entry = new csp_state_utils(STATE_VERSION, 0, (_TCHAR *)(_T("CSP::PC_100_HEAD")));
-       DECL_STATE_ENTRY_MULTI(void, ram, sizeof(ram));
+       state_entry = new csp_state_utils(STATE_VERSION, 0, (_TCHAR *)(_T("CSP::PC_100_HEAD")), csp_logger);
+       DECL_STATE_ENTRY_1D_ARRAY(ram, sizeof(ram));
        for(DEVICE* device = first_device; device; device = device->next_device) {
                device->decl_state();
        }