X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=blobdiff_plain;f=platform%2Fcommon%2Femu.c;h=85e1ba77880cc77bf88394a290ae86af52a91a09;hp=9535bfd236561992f6192fccf5fbda8b8215af3b;hb=fdcfd323747dceacb1ec2e86919d437896635bb7;hpb=ba11a48115de2d25531ddd5fec841ebee42166bd diff --git a/platform/common/emu.c b/platform/common/emu.c index 9535bfd..85e1ba7 100644 --- 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; sram_data = Pico.sv.data; if (sram_data) - memcpy32((int *)sram_data, (int *)Pico_mcd->bram, 0x2000/4); + memcpy(sram_data, Pico_mcd->bram, 0x2000); } else { sram_size = 0x2000; sram_data = Pico_mcd->bram; @@ -913,7 +913,7 @@ int emu_save_load_game(int load, int sram) ret = ret > 0 ? 0 : -1; fclose(sramFile); if ((PicoAHW & PAHW_MCD) && (PicoOpt&POPT_EN_MCD_RAMCART)) - memcpy32((int *)Pico_mcd->bram, (int *)sram_data, 0x2000/4); + memcpy(Pico_mcd->bram, sram_data, 0x2000); } else { // sram save needs some special processing // see if we have anything to save