mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2025-02-20 00:20:33 +00:00
Merge pull request #65 from orbea/error
return false if info is NULL inside retro_load_game
This commit is contained in:
commit
f9592de718
@ -540,6 +540,9 @@ static unsigned pow2ceil(unsigned n) {
|
||||
|
||||
bool retro_load_game(const struct retro_game_info *info)
|
||||
{
|
||||
if (!info)
|
||||
return false;
|
||||
|
||||
bool can_dupe = false;
|
||||
environ_cb(RETRO_ENVIRONMENT_GET_CAN_DUPE, &can_dupe);
|
||||
if (!can_dupe)
|
||||
|
Loading…
x
Reference in New Issue
Block a user