diff --git a/src/xenia/kernel/xam/xam_ui.cc b/src/xenia/kernel/xam/xam_ui.cc index fc8aed659..7b7abb026 100644 --- a/src/xenia/kernel/xam/xam_ui.cc +++ b/src/xenia/kernel/xam/xam_ui.cc @@ -78,7 +78,6 @@ X_RESULT xeXamDispatchDialog(T* dialog, std::function close_callback, uint32_t overlapped) { auto pre = []() { - // Broadcast XN_SYS_UI = true kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true); }; auto run = [dialog, close_callback]() -> X_RESULT { @@ -102,7 +101,6 @@ X_RESULT xeXamDispatchDialog(T* dialog, }; auto post = []() { xe::threading::Sleep(std::chrono::milliseconds(100)); - // Broadcast XN_SYS_UI = false kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false); }; if (!overlapped) { @@ -121,7 +119,6 @@ X_RESULT xeXamDispatchDialogEx( T* dialog, std::function close_callback, uint32_t overlapped) { auto pre = []() { - // Broadcast XN_SYS_UI = true kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true); }; auto run = [dialog, close_callback](uint32_t& extended_error, @@ -146,7 +143,6 @@ X_RESULT xeXamDispatchDialogEx( }; auto post = []() { xe::threading::Sleep(std::chrono::milliseconds(100)); - // Broadcast XN_SYS_UI = false kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false); }; if (!overlapped) { @@ -165,12 +161,10 @@ X_RESULT xeXamDispatchDialogEx( X_RESULT xeXamDispatchHeadless(std::function run_callback, uint32_t overlapped) { auto pre = []() { - // Broadcast XN_SYS_UI = true kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true); }; auto post = []() { xe::threading::Sleep(std::chrono::milliseconds(100)); - // Broadcast XN_SYS_UI = false kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false); }; if (!overlapped) { @@ -189,12 +183,10 @@ X_RESULT xeXamDispatchHeadlessEx( std::function run_callback, uint32_t overlapped) { auto pre = []() { - // Broadcast XN_SYS_UI = true kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true); }; auto post = []() { xe::threading::Sleep(std::chrono::milliseconds(100)); - // Broadcast XN_SYS_UI = false kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false); }; if (!overlapped) { @@ -214,7 +206,6 @@ X_RESULT xeXamDispatchHeadlessEx( template X_RESULT xeXamDispatchDialogAsync(T* dialog, std::function close_callback) { - // Broadcast XN_SYS_UI = true kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true); ++xam_dialogs_shown_; @@ -228,7 +219,6 @@ X_RESULT xeXamDispatchDialogAsync(T* dialog, --xam_dialogs_shown_; xe::threading::Sleep(std::chrono::milliseconds(100)); - // Broadcast XN_SYS_UI = false kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false); }); @@ -236,7 +226,6 @@ X_RESULT xeXamDispatchDialogAsync(T* dialog, } X_RESULT xeXamDispatchHeadlessAsync(std::function run_callback) { - // Broadcast XN_SYS_UI = true kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true); ++xam_dialogs_shown_; @@ -247,7 +236,6 @@ X_RESULT xeXamDispatchHeadlessAsync(std::function run_callback) { --xam_dialogs_shown_; xe::threading::Sleep(std::chrono::milliseconds(100)); - // Broadcast XN_SYS_UI = false kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false); }); @@ -678,7 +666,7 @@ dword_result_t XamShowMarketplaceUI_entry(dword_t user_index, dword_t ui_type, // 0 - view all content for the current title // 1 - view content specified by offer id // content_types: - // always -1? check more games + // game specific, usually just -1 if (user_index >= 4) { return X_ERROR_INVALID_PARAMETER; }