summaryrefslogtreecommitdiff
path: root/libretro.c
diff options
context:
space:
mode:
authoraliaspider2014-12-09 05:16:09 +0100
committeraliaspider2014-12-09 05:16:09 +0100
commitb69fee8b3139eb26405c20aa3adde166f9034b59 (patch)
tree99cd6453677178d02e28ed867c76a2d440fc6cbc /libretro.c
parent3cc3944725700c957b006de6f5a2ee2944d2f525 (diff)
downloadpicogpsp-b69fee8b3139eb26405c20aa3adde166f9034b59.tar.gz
picogpsp-b69fee8b3139eb26405c20aa3adde166f9034b59.tar.bz2
picogpsp-b69fee8b3139eb26405c20aa3adde166f9034b59.zip
video output now works in statically linked builds.
core can't be used as a shared library yet due to the dynarec not working when compiled with -fPIC
Diffstat (limited to 'libretro.c')
-rw-r--r--libretro.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/libretro.c b/libretro.c
index abe130d..875e935 100644
--- a/libretro.c
+++ b/libretro.c
@@ -227,17 +227,25 @@ bool retro_load_game(const struct retro_game_info *info)
// strncat(dir_save, "/",sizeof(dir_save));
- strncat(main_path, "/",sizeof(main_path));
+// strncat(main_path, "/",sizeof(main_path));
- if (load_bios(filename_bios) < 0)
+ if (load_bios(filename_bios) != 0)
{
error_msg("Could not load BIOS image file.\n");
return false;
}
+ if(bios_rom[0] != 0x18)
+ {
+ info_msg("You have an incorrect BIOS image.\n");
+ info_msg("While many games will work fine, some will not. It\n");
+ info_msg("is strongly recommended that you obtain the\n");
+ info_msg("correct BIOS file.\n");
+ }
+
gamepak_filename[0] = 0;
- if (load_gamepak(info->path) < 0)
+ if (load_gamepak(info->path) != 0)
{
error_msg("Could not load the game file.\n");
return false;