mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fonts, buffer aligment, save progress
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@51 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
cea6590346
commit
76276b0bc0
13 changed files with 371 additions and 126 deletions
|
@ -11,7 +11,7 @@
|
|||
#include "../sound/sound.h"
|
||||
|
||||
|
||||
extern unsigned char formatted_bram[8*0x10];
|
||||
extern unsigned char formatted_bram[4*0x10];
|
||||
|
||||
|
||||
int PicoInitMCD(void)
|
||||
|
@ -34,8 +34,9 @@ int PicoResetMCD(int hard)
|
|||
memset(Pico_mcd->word_ram, 0, sizeof(Pico_mcd->word_ram));
|
||||
memset(Pico_mcd->pcm_ram, 0, sizeof(Pico_mcd->pcm_ram));
|
||||
if (hard) {
|
||||
int fmt_size = sizeof(formatted_bram);
|
||||
memset(Pico_mcd->bram, 0, sizeof(Pico_mcd->bram));
|
||||
memcpy(Pico_mcd->bram + sizeof(Pico_mcd->bram) - 8*0x10, formatted_bram, 8*0x10);
|
||||
memcpy(Pico_mcd->bram + sizeof(Pico_mcd->bram) - fmt_size, formatted_bram, fmt_size);
|
||||
}
|
||||
memset(Pico_mcd->s68k_regs, 0, sizeof(Pico_mcd->s68k_regs));
|
||||
memset(&Pico_mcd->pcm, 0, sizeof(Pico_mcd->pcm));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue