Return 'false' if game is NULL (retro_load_game)

This commit is contained in:
twinaphex
2017-01-24 02:20:06 +01:00
parent 2113502e2c
commit b0339f6e06

View File

@@ -1536,6 +1536,9 @@ bool retro_load_game(const struct retro_game_info *game)
{ 0 },
};
if (!game)
return false;
environ_cb(RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS, desc);
if (environ_cb(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &dir) && dir)