mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: packed pixel mode (works over 68k)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@773 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
be2c420828
commit
974fdb5bfd
15 changed files with 330 additions and 91 deletions
|
@ -409,6 +409,32 @@ static void shutdown_MCD(void)
|
|||
PicoAHW &= ~PAHW_MCD;
|
||||
}
|
||||
|
||||
static void system_announce(void)
|
||||
{
|
||||
const char *sys_name, *tv_standard;
|
||||
int fps;
|
||||
|
||||
if (PicoAHW & PAHW_SMS) {
|
||||
sys_name = "Master System";
|
||||
} else if (PicoAHW & PAHW_PICO) {
|
||||
sys_name = "Pico";
|
||||
} else if (PicoAHW & PAHW_MCD) {
|
||||
sys_name = "Mega CD";
|
||||
if ((Pico.m.hardware & 0xc0) == 0x80)
|
||||
sys_name = "Sega CD";
|
||||
} else if (PicoAHW & PAHW_32X) {
|
||||
sys_name = "32X";
|
||||
} else {
|
||||
sys_name = "MegaDrive";
|
||||
if ((Pico.m.hardware & 0xc0) == 0x80)
|
||||
sys_name = "Genesis";
|
||||
}
|
||||
tv_standard = Pico.m.pal ? "PAL" : "NTSC";
|
||||
fps = Pico.m.pal ? 50 : 60;
|
||||
|
||||
emu_status_msg("%s %s / %dFPS", tv_standard, sys_name, fps);
|
||||
}
|
||||
|
||||
// note: this function might mangle rom_fname
|
||||
// XXX: portions of this code should move to pico/
|
||||
int emu_reload_rom(char *rom_fname)
|
||||
|
@ -612,21 +638,7 @@ int emu_reload_rom(char *rom_fname)
|
|||
}
|
||||
else
|
||||
{
|
||||
const char *sys_name, *tv_standard;
|
||||
int fps;
|
||||
|
||||
if (PicoAHW & PAHW_SMS) {
|
||||
sys_name = "Master System";
|
||||
} else {
|
||||
sys_name = "MegaDrive";
|
||||
if ((Pico.m.hardware&0xc0) == 0x80)
|
||||
sys_name = "Genesis";
|
||||
}
|
||||
tv_standard = Pico.m.pal ? "PAL" : "NTSC";
|
||||
fps = Pico.m.pal ? 50 : 60;
|
||||
|
||||
emu_status_msg("%s %s / %dFPS", tv_standard, sys_name, fps);
|
||||
|
||||
system_announce();
|
||||
PicoOpt &= ~POPT_DIS_VDP_FIFO;
|
||||
}
|
||||
|
||||
|
@ -1073,6 +1085,12 @@ static void emu_tray_close(void)
|
|||
emu_status_msg("CD tray closed.");
|
||||
}
|
||||
|
||||
void emu_32x_startup(void)
|
||||
{
|
||||
plat_video_toggle_renderer(0, 1, 0);
|
||||
system_announce();
|
||||
}
|
||||
|
||||
void emu_reset_game(void)
|
||||
{
|
||||
PicoReset();
|
||||
|
@ -1200,9 +1218,9 @@ static void run_events_ui(unsigned int which)
|
|||
PicoStateProgressCB = NULL;
|
||||
}
|
||||
}
|
||||
if (which & PEV_SWITCH_RND)
|
||||
if ((which & PEV_SWITCH_RND) && !(PicoAHW & PAHW_32X))
|
||||
{
|
||||
plat_video_toggle_renderer(1, 0);
|
||||
plat_video_toggle_renderer(1, 0, 0);
|
||||
}
|
||||
if (which & (PEV_SSLOT_PREV|PEV_SSLOT_NEXT))
|
||||
{
|
||||
|
|
|
@ -1452,7 +1452,7 @@ static int menu_loop_adv_options(menu_id id, int keys)
|
|||
|
||||
static int mh_opt_render(menu_id id, int keys)
|
||||
{
|
||||
plat_video_toggle_renderer((keys & PBTN_RIGHT) ? 1 : 0, 1);
|
||||
plat_video_toggle_renderer((keys & PBTN_RIGHT) ? 1 : 0, 0, 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ void plat_video_menu_begin(void);
|
|||
void plat_video_menu_end(void);
|
||||
|
||||
void plat_video_wait_vsync(void);
|
||||
void plat_video_toggle_renderer(int is_next, int is_menu);
|
||||
void plat_video_toggle_renderer(int is_next, int force_16bpp, int is_menu);
|
||||
void plat_validate_config(void);
|
||||
void plat_update_volume(int has_changed, int is_up);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue