mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Turn this into static function
This commit is contained in:
parent
52d1b3fd88
commit
c66963e8cf
@ -565,7 +565,7 @@ static void task_save_handler_finished(retro_task_t *task,
|
|||||||
free(state);
|
free(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* get_serialized_data(const char *path, size_t serial_size)
|
static void *get_serialized_data(const char *path, size_t serial_size)
|
||||||
{
|
{
|
||||||
retro_ctx_serialize_info_t serial_info;
|
retro_ctx_serialize_info_t serial_info;
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
@ -1269,10 +1269,10 @@ bool content_save_state(const char *path, bool save_to_disk, bool autosave)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (data == NULL)
|
if (!data)
|
||||||
data = get_serialized_data(path, info.size);
|
data = get_serialized_data(path, info.size);
|
||||||
|
|
||||||
if (data == NULL)
|
if (!data)
|
||||||
{
|
{
|
||||||
RARCH_ERR("%s \"%s\".\n",
|
RARCH_ERR("%s \"%s\".\n",
|
||||||
msg_hash_to_str(MSG_FAILED_TO_SAVE_STATE_TO),
|
msg_hash_to_str(MSG_FAILED_TO_SAVE_STATE_TO),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user