Adjusted comments
This commit is contained in:
parent
952526a78e
commit
23242f21ce
|
@ -78,7 +78,6 @@ X_RESULT xeXamDispatchDialog(T* dialog,
|
||||||
std::function<X_RESULT(T*)> close_callback,
|
std::function<X_RESULT(T*)> close_callback,
|
||||||
uint32_t overlapped) {
|
uint32_t overlapped) {
|
||||||
auto pre = []() {
|
auto pre = []() {
|
||||||
// Broadcast XN_SYS_UI = true
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
||||||
};
|
};
|
||||||
auto run = [dialog, close_callback]() -> X_RESULT {
|
auto run = [dialog, close_callback]() -> X_RESULT {
|
||||||
|
@ -102,7 +101,6 @@ X_RESULT xeXamDispatchDialog(T* dialog,
|
||||||
};
|
};
|
||||||
auto post = []() {
|
auto post = []() {
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
// Broadcast XN_SYS_UI = false
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
||||||
};
|
};
|
||||||
if (!overlapped) {
|
if (!overlapped) {
|
||||||
|
@ -121,7 +119,6 @@ X_RESULT xeXamDispatchDialogEx(
|
||||||
T* dialog, std::function<X_RESULT(T*, uint32_t&, uint32_t&)> close_callback,
|
T* dialog, std::function<X_RESULT(T*, uint32_t&, uint32_t&)> close_callback,
|
||||||
uint32_t overlapped) {
|
uint32_t overlapped) {
|
||||||
auto pre = []() {
|
auto pre = []() {
|
||||||
// Broadcast XN_SYS_UI = true
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
||||||
};
|
};
|
||||||
auto run = [dialog, close_callback](uint32_t& extended_error,
|
auto run = [dialog, close_callback](uint32_t& extended_error,
|
||||||
|
@ -146,7 +143,6 @@ X_RESULT xeXamDispatchDialogEx(
|
||||||
};
|
};
|
||||||
auto post = []() {
|
auto post = []() {
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
// Broadcast XN_SYS_UI = false
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
||||||
};
|
};
|
||||||
if (!overlapped) {
|
if (!overlapped) {
|
||||||
|
@ -165,12 +161,10 @@ X_RESULT xeXamDispatchDialogEx(
|
||||||
X_RESULT xeXamDispatchHeadless(std::function<X_RESULT()> run_callback,
|
X_RESULT xeXamDispatchHeadless(std::function<X_RESULT()> run_callback,
|
||||||
uint32_t overlapped) {
|
uint32_t overlapped) {
|
||||||
auto pre = []() {
|
auto pre = []() {
|
||||||
// Broadcast XN_SYS_UI = true
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
||||||
};
|
};
|
||||||
auto post = []() {
|
auto post = []() {
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
// Broadcast XN_SYS_UI = false
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
||||||
};
|
};
|
||||||
if (!overlapped) {
|
if (!overlapped) {
|
||||||
|
@ -189,12 +183,10 @@ X_RESULT xeXamDispatchHeadlessEx(
|
||||||
std::function<X_RESULT(uint32_t&, uint32_t&)> run_callback,
|
std::function<X_RESULT(uint32_t&, uint32_t&)> run_callback,
|
||||||
uint32_t overlapped) {
|
uint32_t overlapped) {
|
||||||
auto pre = []() {
|
auto pre = []() {
|
||||||
// Broadcast XN_SYS_UI = true
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
||||||
};
|
};
|
||||||
auto post = []() {
|
auto post = []() {
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
// Broadcast XN_SYS_UI = false
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
||||||
};
|
};
|
||||||
if (!overlapped) {
|
if (!overlapped) {
|
||||||
|
@ -214,7 +206,6 @@ X_RESULT xeXamDispatchHeadlessEx(
|
||||||
template <typename T>
|
template <typename T>
|
||||||
X_RESULT xeXamDispatchDialogAsync(T* dialog,
|
X_RESULT xeXamDispatchDialogAsync(T* dialog,
|
||||||
std::function<void(T*)> close_callback) {
|
std::function<void(T*)> close_callback) {
|
||||||
// Broadcast XN_SYS_UI = true
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
||||||
++xam_dialogs_shown_;
|
++xam_dialogs_shown_;
|
||||||
|
|
||||||
|
@ -228,7 +219,6 @@ X_RESULT xeXamDispatchDialogAsync(T* dialog,
|
||||||
--xam_dialogs_shown_;
|
--xam_dialogs_shown_;
|
||||||
|
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
// Broadcast XN_SYS_UI = false
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -236,7 +226,6 @@ X_RESULT xeXamDispatchDialogAsync(T* dialog,
|
||||||
}
|
}
|
||||||
|
|
||||||
X_RESULT xeXamDispatchHeadlessAsync(std::function<void()> run_callback) {
|
X_RESULT xeXamDispatchHeadlessAsync(std::function<void()> run_callback) {
|
||||||
// Broadcast XN_SYS_UI = true
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, true);
|
||||||
++xam_dialogs_shown_;
|
++xam_dialogs_shown_;
|
||||||
|
|
||||||
|
@ -247,7 +236,6 @@ X_RESULT xeXamDispatchHeadlessAsync(std::function<void()> run_callback) {
|
||||||
--xam_dialogs_shown_;
|
--xam_dialogs_shown_;
|
||||||
|
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
// Broadcast XN_SYS_UI = false
|
|
||||||
kernel_state()->BroadcastNotification(kXNotificationIDSystemUI, 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
|
// 0 - view all content for the current title
|
||||||
// 1 - view content specified by offer id
|
// 1 - view content specified by offer id
|
||||||
// content_types:
|
// content_types:
|
||||||
// always -1? check more games
|
// game specific, usually just -1
|
||||||
if (user_index >= 4) {
|
if (user_index >= 4) {
|
||||||
return X_ERROR_INVALID_PARAMETER;
|
return X_ERROR_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue