mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
get rid of custom memcpy funcs
not used for anything important, just a maintenance burden
This commit is contained in:
parent
ba11a48115
commit
fdcfd32374
9 changed files with 7 additions and 198 deletions
|
@ -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
|
||||
|
|
|
@ -391,7 +391,7 @@ int YM2612UpdateOne_940(int *buffer, int length, int stereo, int is_buf_empty)
|
|||
ym_active_chs = shared_ctl->ym_active_chs;
|
||||
|
||||
// mix in ym buffer. is_buf_empty means nobody mixed there anything yet and it may contain trash
|
||||
if (is_buf_empty && ym_active_chs) memcpy32(buffer, ym_buf, length<<stereo);
|
||||
if (is_buf_empty && ym_active_chs) memcpy(buffer, ym_buf, length << (stereo + 2));
|
||||
else memset32(buffer, 0, length<<stereo);
|
||||
|
||||
if (shared_ctl->writebuffsel == 1) {
|
||||
|
|
|
@ -280,7 +280,7 @@ static int EmuScanEnd16_ld(unsigned int num)
|
|||
ld_left = ld_lines;
|
||||
|
||||
EmuScanBegin16_ld(num);
|
||||
memcpy32(Pico.est.DrawLineDest, oldline, 320 * gp2x_current_bpp / 8 / 4);
|
||||
memcpy(Pico.est.DrawLineDest, oldline, 320 * gp2x_current_bpp / 8);
|
||||
if (emu_scan_end)
|
||||
emu_scan_end(ld_counter);
|
||||
|
||||
|
@ -315,7 +315,7 @@ static int make_local_pal_md(int fast_mode)
|
|||
bgr444_to_rgb32(localPal+0x80, Pico.est.HighPal+0x40);
|
||||
}
|
||||
else
|
||||
memcpy32(localPal+0x80, localPal, 0x40); // for spr prio mess
|
||||
memcpy(localPal + 0x80, localPal, 0x40 * 4); // for spr prio mess
|
||||
|
||||
return pallen;
|
||||
}
|
||||
|
|
|
@ -225,7 +225,7 @@ static void do_pal_update(int allow_sh, int allow_as)
|
|||
}
|
||||
else if (allow_as && (Pico.est.rendstatus & PDRAW_SPR_LO_ON_HI))
|
||||
{
|
||||
memcpy32((int *)dpal+0x80/2, (void *)localPal, 0x40*2/4);
|
||||
memcpy(dpal + 0x80/2, localPal, 0x40*2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue