void emu_textOut16(int x, int y, const char *text);
char *emu_makeRomId(void);
void emu_findKeyBindCombos(void);
+void emu_forcedFrame(int opts);
extern const char * const keyNames[];
void emu_prepareDefaultConfig(void);
{\r
memset(&defaultConfig, 0, sizeof(defaultConfig));\r
defaultConfig.EmuOpt = 0x1d | 0x00700; // | <- ram_tmng, confirm_save, cd_leds\r
- defaultConfig.s_PicoOpt = 0x0f | 0x20e00; // | <- use_940, cd_pcm, cd_cdda, svp drc\r
+ defaultConfig.s_PicoOpt = 0x0f | POPT_EXT_FM|POPT_EN_MCD_PCM|POPT_EN_MCD_CDDA|POPT_EN_SVP_DRC|POPT_ACC_SPRITES;\r
defaultConfig.s_PsndRate = 44100;\r
defaultConfig.s_PicoRegion = 0; // auto\r
defaultConfig.s_PicoAutoRgnOrder = 0x184; // US, EU, JP\r
}\r
\r
\r
-void emu_forcedFrame(void)\r
+void emu_forcedFrame(int opts)\r
{\r
int po_old = PicoOpt;\r
int eo_old = currentConfig.EmuOpt;\r
\r
- PicoOpt &= ~0x0010;\r
- PicoOpt |= 0x4080; // soft_scale | acc_sprites\r
+ PicoOpt &= ~0x10;\r
+ PicoOpt |= opts|POPT_ACC_SPRITES; // acc_sprites\r
currentConfig.EmuOpt |= 0x80;\r
\r
//vidResetMode();\r
\r
// if in 8bit mode, generate 16bit image for menu background\r
if ((PicoOpt&0x10) || !(currentConfig.EmuOpt&0x80))\r
- emu_forcedFrame();\r
+ emu_forcedFrame(POPT_EN_SOFTSCALE);\r
}\r
\r
\r
void emu_Deinit(void);\r
void emu_Loop(void);\r
void emu_ResetGame(void);\r
-void emu_forcedFrame(void);\r
\r
void osd_text(int x, int y, const char *text);\r
\r
if (PicoDrawMask & PDRAW_SPRITES_HI_ON) memcpy(layer_str + 19, "spr_hi", 6);\r
\r
memset(gp2x_screen, 0, 320*240*2);\r
- emu_forcedFrame();\r
+ emu_forcedFrame(0);\r
smalltext_out16(4, 232, layer_str, 0xffff);\r
}\r
\r
areaClose(file);\r
}\r
\r
- emu_forcedFrame();\r
+ emu_forcedFrame(POPT_EN_SOFTSCALE);\r
menu_prepare_bg(1);\r
\r
memcpy(Pico.vram, tmp_vram, sizeof(Pico.vram));\r
PicoSkipFrame=0;
}
-void emu_forcedFrame(void)
+void emu_forcedFrame(int opts)
{
int po_old = PicoOpt;
int eo_old = currentConfig.EmuOpt;
- PicoOpt &= ~0x0010;
- PicoOpt |= 0x4080; // soft_scale | acc_sprites
+ PicoOpt &= ~0x10;
+ PicoOpt |= opts|POPT_ACC_SPRITES
currentConfig.EmuOpt |= 0x80;
vidResetMode();
void emu_Deinit(void);
void emu_Loop(void);
void emu_ResetGame(void);
-void emu_forcedFrame(void);
void emu_HandleResume(void);
void emu_msg_cb(const char *msg);