mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Use task_set_title
This commit is contained in:
parent
c5eafd58e8
commit
c867784898
@ -218,7 +218,8 @@ bool task_push_netplay_crc_scan(uint32_t crc, char* name,
|
||||
task->state = state;
|
||||
task->handler = task_netplay_crc_scan_handler;
|
||||
task->callback = netplay_crc_scan_callback;
|
||||
task->title = strdup("Looking for matching content...");
|
||||
|
||||
task_set_title(task, strdup("Looking for matching content..."));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
|
@ -89,7 +89,8 @@ bool task_push_netplay_lan_scan(void)
|
||||
task->type = TASK_TYPE_BLOCKING;
|
||||
task->handler = task_netplay_lan_scan_handler;
|
||||
task->callback = netplay_lan_scan_callback;
|
||||
task->title = strdup(msg_hash_to_str(MSG_NETPLAY_LAN_SCANNING));
|
||||
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_NETPLAY_LAN_SCANNING)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
|
@ -646,7 +646,8 @@ static bool task_push_undo_save_state(const char *path, void *data, size_t size)
|
||||
task->state = state;
|
||||
task->handler = task_save_handler;
|
||||
task->callback = undo_save_state_cb;
|
||||
task->title = strdup(msg_hash_to_str(MSG_UNDOING_SAVE_STATE));
|
||||
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_UNDOING_SAVE_STATE)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
@ -1003,9 +1004,10 @@ static void task_push_save_state(const char *path, void *data, size_t size, bool
|
||||
task->state = state;
|
||||
task->handler = task_save_handler;
|
||||
task->callback = save_state_cb;
|
||||
task->title = strdup(msg_hash_to_str(MSG_SAVING_STATE));
|
||||
task->mute = state->mute;
|
||||
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_SAVING_STATE)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
return;
|
||||
@ -1071,9 +1073,10 @@ static void task_push_load_and_save_state(const char *path, void *data,
|
||||
task->type = TASK_TYPE_BLOCKING;
|
||||
task->handler = task_load_handler;
|
||||
task->callback = content_load_and_save_state_cb;
|
||||
task->title = strdup(msg_hash_to_str(MSG_LOADING_STATE));
|
||||
task->mute = state->mute;
|
||||
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_LOADING_STATE)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
return;
|
||||
@ -1205,7 +1208,8 @@ bool content_load_state(const char *path,
|
||||
task->state = state;
|
||||
task->handler = task_load_handler;
|
||||
task->callback = content_load_state_cb;
|
||||
task->title = strdup(msg_hash_to_str(MSG_LOADING_STATE));
|
||||
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_LOADING_STATE)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
|
@ -258,7 +258,7 @@ static bool screenshot_dump(
|
||||
task->handler = task_screenshot_handler;
|
||||
|
||||
if (!savestate)
|
||||
task->title = strdup(msg_hash_to_str(MSG_TAKING_SCREENSHOT));
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_TAKING_SCREENSHOT)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
|
@ -100,8 +100,8 @@ bool task_push_wifi_scan(void)
|
||||
task->state = state;
|
||||
task->handler = task_wifi_scan_handler;
|
||||
task->callback = wifi_scan_callback;
|
||||
task->title = strdup(msg_hash_to_str(
|
||||
MSG_SCANNING_WIRELESS_NETWORKS));
|
||||
|
||||
task_set_title(task, strdup(msg_hash_to_str(MSG_SCANNING_WIRELESS_NETWORKS)));
|
||||
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user