static unsigned frame_count = 0;
static bool libretro_supports_bitmasks = false;
+static unsigned previous_width = 0;
+static unsigned previous_height = 0;
+
static int plugins_opened;
static int is_pal_mode;
vout_width = w;
vout_height = h;
+ if (previous_width != vout_width || previous_height != vout_height)
+ {
+ previous_width = vout_width;
+ previous_height = vout_height;
+
SysPrintf("setting mode width: %d height %d\n", vout_width, vout_height);
struct retro_system_av_info info;
retro_get_system_av_info(&info);
environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &info.geometry);
+ }
set_vout_fb();
}
{
if (id == RETRO_MEMORY_SAVE_RAM)
return Mcd1Data;
+ else if (id == RETRO_MEMORY_SYSTEM_RAM)
+ return psxM;
else
return NULL;
}
{
if (id == RETRO_MEMORY_SAVE_RAM)
return MCD_SIZE;
+ else if (id == RETRO_MEMORY_SYSTEM_RAM)
+ return 0x210000;
else
return 0;
}
// Query digital inputs
//
// > Pad-Up
- if (ret & (1 < RETRO_DEVICE_ID_JOYPAD_UP))
+ if (ret & (1 << RETRO_DEVICE_ID_JOYPAD_UP))
in_keystate[i] |= (1 << DKEY_UP);
// > Pad-Right
if (ret & (1 << RETRO_DEVICE_ID_JOYPAD_RIGHT))