From b69fee8b3139eb26405c20aa3adde166f9034b59 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 9 Dec 2014 05:16:09 +0100 Subject: 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 --- libretro.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'libretro.c') 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; -- cgit v1.2.3