mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-20 09:52:33 +00:00
(PSP2/Griffin) Add video driver hooks
This commit is contained in:
parent
94e68b118d
commit
c837e1101d
@ -37,6 +37,7 @@ enum
|
||||
VIDEO_WII,
|
||||
VIDEO_XENON360,
|
||||
VIDEO_XDK_D3D,
|
||||
VIDEO_PSP2_GXM,
|
||||
VIDEO_D3D9,
|
||||
VIDEO_VG,
|
||||
VIDEO_NULL,
|
||||
|
@ -162,6 +162,8 @@ VIDEO DRIVER
|
||||
#include "../../wii/mem2_manager.c"
|
||||
#endif
|
||||
#include "../../gx/gx_video.c"
|
||||
#elif defined(SN_TARGET_PSP2)
|
||||
#include "../../psp2/psp2_video.c"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DYLIB
|
||||
|
3
driver.c
3
driver.c
@ -98,6 +98,9 @@ static const video_driver_t *video_drivers[] = {
|
||||
#if defined(HAVE_WIN32_D3D9)
|
||||
&video_d3d9,
|
||||
#endif
|
||||
#ifdef SN_TARGET_PSP2
|
||||
&video_psp2_gxm,
|
||||
#endif
|
||||
#ifdef HAVE_SDL
|
||||
&video_sdl,
|
||||
#endif
|
||||
|
1
driver.h
1
driver.h
@ -290,6 +290,7 @@ extern const audio_driver_t audio_ps3;
|
||||
extern const audio_driver_t audio_gx;
|
||||
extern const audio_driver_t audio_null;
|
||||
extern const video_driver_t video_gl;
|
||||
extern const video_driver_t video_psp2_gxm;
|
||||
extern const video_driver_t video_d3d9;
|
||||
extern const video_driver_t video_gx;
|
||||
extern const video_driver_t video_xenon360;
|
||||
|
@ -519,7 +519,7 @@ static void psp2_gfx_restart(void) {}
|
||||
static void psp2_gfx_stop(void) {}
|
||||
#endif
|
||||
|
||||
const video_driver_t video_null = {
|
||||
const video_driver_t video_psp2_gxm = {
|
||||
psp2_gfx_init,
|
||||
psp2_gfx_frame,
|
||||
psp2_gfx_set_nonblock_state,
|
||||
@ -527,7 +527,7 @@ const video_driver_t video_null = {
|
||||
psp2_gfx_focus,
|
||||
NULL,
|
||||
psp2_gfx_free,
|
||||
"null",
|
||||
"psp2_gxm",
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
psp2_gfx_start,
|
||||
|
@ -90,6 +90,8 @@ const char *config_get_default_video(void)
|
||||
return "xdk_d3d";
|
||||
case VIDEO_D3D9:
|
||||
return "d3d9";
|
||||
case VIDEO_PSP2_GXM:
|
||||
return "psp2_gxm";
|
||||
case VIDEO_XVIDEO:
|
||||
return "xvideo";
|
||||
case VIDEO_SDL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user