mirror of
https://github.com/wiiu-env/ScreenshotWUPS.git
synced 2024-11-22 06:29:15 +01:00
Block screenshots for some games that cause issues
This commit is contained in:
parent
ac3e01fa75
commit
aeb9254da7
@ -30,7 +30,7 @@ void NotAvailableCallback(NotificationModuleHandle handle, void *context) {
|
||||
|
||||
void RequestScreenshot() {
|
||||
NotificationModuleStatus err;
|
||||
if (!OSIsHomeButtonMenuEnabled()) {
|
||||
if (gBlockScreenshots || !OSIsHomeButtonMenuEnabled()) {
|
||||
if (!gNotAvailableNotificationDisplayed) {
|
||||
if ((err = NotificationModule_AddErrorNotificationWithCallback("Screenshots not available at the moment.",
|
||||
NotAvailableCallback,
|
||||
|
@ -23,4 +23,5 @@ NMColor COLOR_RED = {237, 28, 36, 255};
|
||||
|
||||
int32_t gThreadPriorityIncrease = 1;
|
||||
|
||||
bool gBlockDRCScreenshots = false;
|
||||
bool gBlockDRCScreenshots = false;
|
||||
bool gBlockScreenshots = false;
|
||||
|
@ -26,4 +26,5 @@ extern NMColor COLOR_RED;
|
||||
|
||||
extern int32_t gThreadPriorityIncrease;
|
||||
|
||||
extern bool gBlockDRCScreenshots;
|
||||
extern bool gBlockDRCScreenshots;
|
||||
extern bool gBlockScreenshots;
|
||||
|
@ -97,4 +97,17 @@ void ApplyGameSpecificPatches() {
|
||||
} else {
|
||||
gThreadPriorityIncrease = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Some titles will softlock when trying to take screenshots, let's block them for now.
|
||||
if (titleID == 0x0005000010110100L || // NANO ASSAULT NEO USA
|
||||
titleID == 0x0005000010110600L || // NANO ASSAULT NEO EUR
|
||||
titleID == 0x0005000010136400L || // NANO ASSAULT NEO JPN
|
||||
titleID == 0x000500001010FA00L || // The Cave USA
|
||||
titleID == 0x000500001012B500L || // The Cave EUR
|
||||
titleID == 0x0005000010135600L // The Cave JPN
|
||||
) {
|
||||
gBlockScreenshots = true;
|
||||
} else {
|
||||
gBlockScreenshots = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user