mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Remove this - not threadsafe
This commit is contained in:
parent
a08a7c1380
commit
91f3a4bf11
@ -817,7 +817,6 @@ static void content_load_state_cb(void *task_data,
|
|||||||
retro_ctx_serialize_info_t serial_info;
|
retro_ctx_serialize_info_t serial_info;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
bool ret;
|
bool ret;
|
||||||
char err_buf[1024];
|
|
||||||
load_task_data_t *load_data = (load_task_data_t*)task_data;
|
load_task_data_t *load_data = (load_task_data_t*)task_data;
|
||||||
ssize_t size = load_data->size;
|
ssize_t size = load_data->size;
|
||||||
unsigned num_blocks = 0;
|
unsigned num_blocks = 0;
|
||||||
@ -825,8 +824,6 @@ static void content_load_state_cb(void *task_data,
|
|||||||
struct sram_block *blocks = NULL;
|
struct sram_block *blocks = NULL;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
err_buf[0] = '\0';
|
|
||||||
|
|
||||||
RARCH_LOG("%s: \"%s\".\n",
|
RARCH_LOG("%s: \"%s\".\n",
|
||||||
msg_hash_to_str(MSG_LOADING_STATE),
|
msg_hash_to_str(MSG_LOADING_STATE),
|
||||||
load_data->path);
|
load_data->path);
|
||||||
@ -950,20 +947,6 @@ static void content_load_state_cb(void *task_data,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (load_data->autoload)
|
|
||||||
snprintf(err_buf, sizeof(err_buf), "%s \"%s\" %s.",
|
|
||||||
msg_hash_to_str(MSG_AUTOLOADING_SAVESTATE_FROM),
|
|
||||||
load_data->path,
|
|
||||||
msg_hash_to_str(MSG_FAILED)
|
|
||||||
);
|
|
||||||
else
|
|
||||||
snprintf(err_buf, sizeof(err_buf), "%s \"%s\".\n",
|
|
||||||
msg_hash_to_str(MSG_FAILED_TO_LOAD_STATE),
|
|
||||||
load_data->path);
|
|
||||||
|
|
||||||
if (!load_data->mute)
|
|
||||||
runloop_msg_queue_push(err_buf, 1, 180, true);
|
|
||||||
|
|
||||||
RARCH_ERR("%s \"%s\".\n",
|
RARCH_ERR("%s \"%s\".\n",
|
||||||
msg_hash_to_str(MSG_FAILED_TO_LOAD_STATE),
|
msg_hash_to_str(MSG_FAILED_TO_LOAD_STATE),
|
||||||
load_data->path);
|
load_data->path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user