notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get rid of custom memcpy funcs
[picodrive.git]
/
platform
/
common
/
emu.c
diff --git
a/platform/common/emu.c
b/platform/common/emu.c
index
9535bfd
..
85e1ba7
100644
(file)
--- a/
platform/common/emu.c
+++ b/
platform/common/emu.c
@@
-891,7
+891,7
@@
int emu_save_load_game(int load, int sram)
sram_size = 0x12000;
\r
sram_data = Pico.sv.data;
\r
if (sram_data)
\r
sram_size = 0x12000;
\r
sram_data = Pico.sv.data;
\r
if (sram_data)
\r
- memcpy
32((int *)sram_data, (int *)Pico_mcd->bram, 0x2000/4
);
\r
+ memcpy
(sram_data, Pico_mcd->bram, 0x2000
);
\r
} else {
\r
sram_size = 0x2000;
\r
sram_data = Pico_mcd->bram;
\r
} else {
\r
sram_size = 0x2000;
\r
sram_data = Pico_mcd->bram;
\r
@@
-913,7
+913,7
@@
int emu_save_load_game(int load, int sram)
ret = ret > 0 ? 0 : -1;
\r
fclose(sramFile);
\r
if ((PicoAHW & PAHW_MCD) && (PicoOpt&POPT_EN_MCD_RAMCART))
\r
ret = ret > 0 ? 0 : -1;
\r
fclose(sramFile);
\r
if ((PicoAHW & PAHW_MCD) && (PicoOpt&POPT_EN_MCD_RAMCART))
\r
- memcpy
32((int *)Pico_mcd->bram, (int *)sram_data, 0x2000/4
);
\r
+ memcpy
(Pico_mcd->bram, sram_data, 0x2000
);
\r
} else {
\r
// sram save needs some special processing
\r
// see if we have anything to save
\r
} else {
\r
// sram save needs some special processing
\r
// see if we have anything to save
\r