Better error handling

This commit is contained in:
twinaphex 2017-01-24 15:22:56 +01:00
parent 49980314f8
commit 76b13e1ccf

View File

@ -3142,10 +3142,10 @@ static uint16_t input_buf[MAX_PLAYERS] = {0};
bool retro_load_game(const struct retro_game_info *info)
{
char tocbasepath[4096];
bool ret = false;
char tocbasepath[4096];
if (failed_init)
if (!info || failed_init)
return false;
struct retro_input_descriptor desc[] = {