mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(content.c) Create error goto
This commit is contained in:
parent
33c47f3d39
commit
89b7fb5380
13
content.c
13
content.c
@ -216,12 +216,7 @@ static bool content_load_state(const char *path)
|
|||||||
path);
|
path);
|
||||||
|
|
||||||
if (!ret || size < 0)
|
if (!ret || size < 0)
|
||||||
{
|
goto error;
|
||||||
RARCH_ERR("%s \"%s\".\n",
|
|
||||||
msg_hash_to_str(MSG_FAILED_TO_LOAD_STATE),
|
|
||||||
path);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
RARCH_LOG("%s: %u %s.\n",
|
RARCH_LOG("%s: %u %s.\n",
|
||||||
msg_hash_to_str(MSG_STATE_SIZE),
|
msg_hash_to_str(MSG_STATE_SIZE),
|
||||||
@ -280,6 +275,12 @@ static bool content_load_state(const char *path)
|
|||||||
free(blocks);
|
free(blocks);
|
||||||
free(buf);
|
free(buf);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
error:
|
||||||
|
RARCH_ERR("%s \"%s\".\n",
|
||||||
|
msg_hash_to_str(MSG_FAILED_TO_LOAD_STATE),
|
||||||
|
path);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user