beetle-psx-libretro/libretro_cbs.h
rz5 b0d55624a5 Changes to core startup. Fixes #553
* Shared memcards and memcard0 method core options are now only checked in retro_load_game and require a restart
* In retro_load_game, rsx_intf_open is called first before check_variables and alloc_surface
* check_variables no longer receives any params
* Ensure none of the renderers call SET_SYSTEM_AV_INFO before we're in retro_run
* Ensure the first iteration of retro_run checks core options even if they weren't updated yet
* Store the upscale shift when calling GPU_Init() and prevent calling delete on a null pointer in GPU_Rescale()
2019-11-15 00:17:53 +00:00

31 lines
719 B
C

#ifndef __LIBRETRO_CBS_H
#define __LIBRETRO_CBS_H
#include <boolean.h>
#ifdef __cplusplus
extern "C" {
#endif
extern bool content_is_pal;
extern retro_video_refresh_t video_cb;
extern retro_environment_t environ_cb;
extern uint8_t widescreen_hack;
extern uint8_t psx_gpu_upscale_shift;
extern int lineRenderMode;
extern int filter_mode;
extern bool opaque_check;
extern bool semitrans_check;
/* Warns the libretro implementation that it needs to update its static MDFN_Surface object */
extern bool need_new_surface;
/* Whether or not the libretro core is starting up i.e. not in retro_run()
* Prevents HW renderers from calling SET_SYSTEM_AV_INFO */
extern bool is_startup;
#ifdef __cplusplus
}
#endif
#endif