OSDN Git Service

[VM][MCS48] Fix FTBFS.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 14 Oct 2018 10:27:28 +0000 (19:27 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 14 Oct 2018 10:27:28 +0000 (19:27 +0900)
source/src/vm/device.h
source/src/vm/mcs48.cpp

index a38bc69..edb3661 100644 (file)
@@ -58,7 +58,6 @@ class csp_state_utils;
 
 extern CSP_Logger *csp_logger;
 
-#include "../statesub.h"
 #endif
 class DEVICE
 {
index 1fba894..3ef8354 100644 (file)
@@ -246,7 +246,7 @@ bool MCS48::process_state(FILEIO* state_fio, bool loading)
        state_fio->StateUint8(cpustate->timecount_enabled);
        state_fio->StateUint16(cpustate->a11);
        state_fio->StateInt32(cpustate->icount);
-       state_fio->StateBuffer(cpustate->rom, 0x1000); // 0x100 ?
+       state_fio->StateBuffer(cpustate->rom, 0x1000, 1); // 0x100 ?
        // END CPUREGS
 
        if(loading) {