aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authormeepingsnesroms2017-04-07 10:10:32 -0700
committerGitHub2017-04-07 10:10:32 -0700
commit646a63e41c53e5c1c971a4e305d4627dcee43c5e (patch)
treea892cc41f8807b6230983aa3b3e3ec1aeac37c1d /frontend
parent76e889bcfaf9776b071627e7e8c9bff0465f539c (diff)
downloadpcsx_rearmed-646a63e41c53e5c1c971a4e305d4627dcee43c5e.tar.gz
pcsx_rearmed-646a63e41c53e5c1c971a4e305d4627dcee43c5e.tar.bz2
pcsx_rearmed-646a63e41c53e5c1c971a4e305d4627dcee43c5e.zip
Move dummy functions
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c41
1 files changed, 9 insertions, 32 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index bf94f16..9a3f070 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -83,6 +83,15 @@ int in_enable_vibration = 1;
#define VOUT_MAX_WIDTH 1024
#define VOUT_MAX_HEIGHT 512
+//Dummy functions
+bool retro_load_game_special(unsigned game_type, const struct retro_game_info *info, size_t num_info){return false;}
+void retro_unload_game(void){}
+static int vout_open(void){return 0;}
+static void vout_close(void){}
+static int snd_init(void){return 0;}
+static void snd_finish(void){}
+static int snd_busy(void){return 0;}
+
static void init_memcard(char *mcd_data)
{
unsigned off = 0;
@@ -116,11 +125,6 @@ static void init_memcard(char *mcd_data)
}
}
-static int vout_open(void)
-{
- return 0;
-}
-
static void vout_set_mode(int w, int h, int raw_w, int raw_h, int bpp)
{
vout_width = w;
@@ -199,10 +203,6 @@ out:
pl_rearmed_cbs.flip_cnt++;
}
-static void vout_close(void)
-{
-}
-
#ifdef _3DS
typedef struct
{
@@ -408,20 +408,6 @@ void pl_update_gun(int *xn, int *yn, int *xres, int *yres, int *in)
}
/* sound calls */
-static int snd_init(void)
-{
- return 0;
-}
-
-static void snd_finish(void)
-{
-}
-
-static int snd_busy(void)
-{
- return 0;
-}
-
static void snd_feed(void *buf, int bytes)
{
if (audio_batch_cb != NULL)
@@ -1277,15 +1263,6 @@ bool retro_load_game(const struct retro_game_info *info)
return true;
}
-bool retro_load_game_special(unsigned game_type, const struct retro_game_info *info, size_t num_info)
-{
- return false;
-}
-
-void retro_unload_game(void)
-{
-}
-
unsigned retro_get_region(void)
{
return is_pal_mode ? RETRO_REGION_PAL : RETRO_REGION_NTSC;