1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 10:16:39 +00:00

Add gamecard notification.

This commit is contained in:
Pablo Curiel 2021-06-21 00:06:44 -04:00
parent 75ebd97413
commit 14374885f9
3 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,6 @@
{
"notification": "Gamecard status change detected!",
"error_frame": {
"not_inserted": "No gamecard inserted.",
"processing": "Processing gamecard, please wait...",

View file

@ -1,4 +1,4 @@
{
"no_titles_available": "No user titles available.",
"notification": "User titles tab updated (gamecard status change detected)."
"notification": "User titles list updated!"
}

View file

@ -83,6 +83,8 @@ namespace nxdt::views
/* Subscribe to gamecard status event. */
this->gc_status_task_sub = this->gc_status_task->RegisterListener([this](GameCardStatus gc_status) {
brls::Application::notify("gamecard_tab/notification"_i18n);
if (gc_status < GameCardStatus_InsertedAndInfoLoaded) this->SwitchLayerView(true);
switch(gc_status)