Unhardcode more strings

This commit is contained in:
Jean-André Santoni 2016-12-01 00:49:48 +01:00
parent 1f1a8eec89
commit f41e420b44
3 changed files with 8 additions and 2 deletions

View File

@ -2241,3 +2241,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_EDGE_MAGAZINE_RATING,
"Database - Filter : Edge Magazine Rating")
MSG_HASH(MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_DATABASE_INFO,
"Database Info")
MSG_HASH(MSG_WIFI_SCAN_COMPLETE,
"Wi-Fi scan complete.")
MSG_HASH(MSG_SCANNING_WIRELESS_NETWORKS,
"Scanning wireless networks...")

View File

@ -278,6 +278,8 @@ enum msg_hash_enums
MSG_MOVIE_RECORD_STOPPED,
MSG_MOVIE_PLAYBACK_ENDED,
MSG_TAKING_SCREENSHOT,
MSG_WIFI_SCAN_COMPLETE,
MSG_SCANNING_WIRELESS_NETWORKS,
MSG_FAILED_TO_TAKE_SCREENSHOT,
MSG_CUSTOM_TIMING_GIVEN,
MSG_SAVING_STATE,

View File

@ -75,7 +75,7 @@ static void task_wifi_scan_handler(retro_task_t *task)
driver_wifi_scan();
task->progress = 100;
task->title = strdup("Wi-Fi scan complete");
task->title = strdup(msg_hash_to_str(MSG_WIFI_SCAN_COMPLETE));
task->finished = true;
return;
@ -96,7 +96,7 @@ bool task_push_wifi_scan(void)
task->state = state;
task->handler = task_wifi_scan_handler;
task->callback = wifi_scan_callback;
task->title = strdup("Scanning wireless networks...");
task->title = strdup(msg_hash_to_str(MSG_SCANNING_WIRELESS_NETWORKS));
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);