void pemu_prep_defconfig(void)
{
- memset(&defaultConfig, 0, sizeof(defaultConfig));
- defaultConfig.EmuOpt = 0x1d | 0x680; // | confirm_save, cd_leds, 16bit rend
- defaultConfig.s_PicoOpt = 0x0f | POPT_EN_MCD_PCM|POPT_EN_MCD_CDDA|POPT_EN_SVP_DRC|POPT_ACC_SPRITES;
defaultConfig.s_PsndRate = 22050;
- defaultConfig.s_PicoRegion = 0; // auto
- defaultConfig.s_PicoAutoRgnOrder = 0x184; // US, EU, JP
defaultConfig.s_PicoCDBuffers = 0;
- defaultConfig.Frameskip = -1; // auto
- defaultConfig.volume = 50;
defaultConfig.KeyBinds[ 2] = 1<<0; // SACB RLDU
defaultConfig.KeyBinds[ 3] = 1<<1;
defaultConfig.KeyBinds[ 0] = 1<<2;
defaultConfig.KeyBinds[12] = 1<<29; // vol up
defaultConfig.KeyBinds[11] = 1<<30; // vol down
defaultConfig.scaling = 0;
- defaultConfig.turbo_rate = 15;
}
if (PicoOpt&0x10) {
} else if (currentConfig.EmuOpt&0x80) {
- PicoDrawSetColorFormat(1);
+ PicoDrawSetOutFormat(PDF_RGB555, 0);
PicoScanBegin = EmuScanBegin16;
} else {
- PicoDrawSetColorFormat(-1);
+ PicoDrawSetOutFormat(PDF_NONE, 0);
PicoScanBegin = EmuScanBegin8;
}
if ((PicoOpt&0x10) || !(currentConfig.EmuOpt&0x80)) {
}
/* forced frame to front buffer */
-void pemu_forced_frame(int opts)
+void pemu_forced_frame(int opts, int no_scale)
{
int po_old = PicoOpt;
int eo_old = currentConfig.EmuOpt;
if (giz_screen == NULL)
giz_screen = fb_lock(1);
- PicoDrawSetColorFormat(1);
+ PicoDrawSetOutFormat(PDF_RGB555, 0);
PicoScanBegin = EmuScanBegin16;
Pico.m.dirtyPal = 1;
PicoFrameDrawOnly();