diff options
Diffstat (limited to 'src/mess/machine/spec_snqk.c')
-rw-r--r-- | src/mess/machine/spec_snqk.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mess/machine/spec_snqk.c b/src/mess/machine/spec_snqk.c index 6eedb750bcb..dfc8ce696f5 100644 --- a/src/mess/machine/spec_snqk.c +++ b/src/mess/machine/spec_snqk.c @@ -114,7 +114,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) { dynamic_buffer snapshot_data(snapshot_size); - image.fread(snapshot_data, snapshot_size); + image.fread(&snapshot_data[0], snapshot_size); if (!core_stricmp(file_type, "sna")) { @@ -123,7 +123,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .SNA file size.\n"); goto error; } - spectrum_setup_sna(machine(), snapshot_data, snapshot_size); + spectrum_setup_sna(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "sp")) { @@ -135,7 +135,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) goto error; } } - spectrum_setup_sp(machine(), snapshot_data, snapshot_size); + spectrum_setup_sp(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "ach")) { @@ -144,7 +144,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .ACH file size.\n"); goto error; } - spectrum_setup_ach(machine(), snapshot_data, snapshot_size); + spectrum_setup_ach(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "prg")) { @@ -153,7 +153,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .PRG file size.\n"); goto error; } - spectrum_setup_prg(machine(), snapshot_data, snapshot_size); + spectrum_setup_prg(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "plusd")) { @@ -162,7 +162,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .PLUSD file size.\n"); goto error; } - spectrum_setup_plusd(machine(), snapshot_data, snapshot_size); + spectrum_setup_plusd(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "sem")) { @@ -176,7 +176,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) goto error; } } - spectrum_setup_sem(machine(), snapshot_data, snapshot_size); + spectrum_setup_sem(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "sit")) { @@ -185,7 +185,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .SIT file size.\n"); goto error; } - spectrum_setup_sit(machine(), snapshot_data, snapshot_size); + spectrum_setup_sit(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "zx")) { @@ -194,7 +194,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .ZX file size.\n"); goto error; } - spectrum_setup_zx(machine(), snapshot_data, snapshot_size); + spectrum_setup_zx(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "snp")) { @@ -203,7 +203,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .SNP file size.\n"); goto error; } - spectrum_setup_snp(machine(), snapshot_data, snapshot_size); + spectrum_setup_snp(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "snx")) { @@ -213,7 +213,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .SNX file size.\n"); goto error; } - spectrum_setup_snx(machine(), snapshot_data, snapshot_size); + spectrum_setup_snx(machine(), &snapshot_data[0], snapshot_size); } else if (!core_stricmp(file_type, "frz")) { @@ -222,11 +222,11 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .FRZ file size.\n"); goto error; } - spectrum_setup_frz(machine(), snapshot_data, snapshot_size); + spectrum_setup_frz(machine(), &snapshot_data[0], snapshot_size); } else { - spectrum_setup_z80(machine(), snapshot_data, snapshot_size); + spectrum_setup_z80(machine(), &snapshot_data[0], snapshot_size); } return IMAGE_INIT_PASS; @@ -2447,7 +2447,7 @@ QUICKLOAD_LOAD_MEMBER( spectrum_state,spectrum) { dynamic_buffer quickload_data(quickload_size); - image.fread(quickload_data, quickload_size); + image.fread(&quickload_data[0], quickload_size); if (!core_stricmp(file_type, "scr")) { @@ -2456,7 +2456,7 @@ QUICKLOAD_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .SCR file size.\n"); goto error; } - spectrum_setup_scr(machine(), quickload_data, quickload_size); + spectrum_setup_scr(machine(), &quickload_data[0], quickload_size); } else if (!core_stricmp(file_type, "raw")) { @@ -2465,7 +2465,7 @@ QUICKLOAD_LOAD_MEMBER( spectrum_state,spectrum) logerror("Invalid .RAW file size.\n"); goto error; } - spectrum_setup_raw(machine(), quickload_data, quickload_size); + spectrum_setup_raw(machine(), &quickload_data[0], quickload_size); } return IMAGE_INIT_PASS; |