From 14374885f90347ab4859b19a3d30d21167205f13 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Mon, 21 Jun 2021 00:06:44 -0400 Subject: [PATCH] Add gamecard notification. --- romfs/i18n/en-US/gamecard_tab.json | 2 ++ romfs/i18n/en-US/user_titles_tab.json | 2 +- source/gamecard_tab.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/romfs/i18n/en-US/gamecard_tab.json b/romfs/i18n/en-US/gamecard_tab.json index 8d6c0a4..5fae0f5 100644 --- a/romfs/i18n/en-US/gamecard_tab.json +++ b/romfs/i18n/en-US/gamecard_tab.json @@ -1,4 +1,6 @@ { + "notification": "Gamecard status change detected!", + "error_frame": { "not_inserted": "No gamecard inserted.", "processing": "Processing gamecard, please wait...", diff --git a/romfs/i18n/en-US/user_titles_tab.json b/romfs/i18n/en-US/user_titles_tab.json index b4fb5eb..bfa9771 100644 --- a/romfs/i18n/en-US/user_titles_tab.json +++ b/romfs/i18n/en-US/user_titles_tab.json @@ -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!" } diff --git a/source/gamecard_tab.cpp b/source/gamecard_tab.cpp index bb6f2f4..f51b0b0 100644 --- a/source/gamecard_tab.cpp +++ b/source/gamecard_tab.cpp @@ -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)