mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 19:51:48 +01:00
return 'false' if info is NULL (retro_load_game)
This commit is contained in:
parent
0f1d9501cf
commit
9f9a4288a3
@ -1926,13 +1926,16 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
|
|||||||
bool retro_load_game(const struct retro_game_info *info)
|
bool retro_load_game(const struct retro_game_info *info)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char *dir;
|
const char *dir = NULL;
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
char slash = '\\';
|
char slash = '\\';
|
||||||
#else
|
#else
|
||||||
char slash = '/';
|
char slash = '/';
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!info)
|
||||||
|
return false;
|
||||||
|
|
||||||
extract_directory(g_rom_dir, info->path, sizeof(g_rom_dir));
|
extract_directory(g_rom_dir, info->path, sizeof(g_rom_dir));
|
||||||
extract_name(g_rom_name, info->path, sizeof(g_rom_name));
|
extract_name(g_rom_name, info->path, sizeof(g_rom_name));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user