Block screenshots for some games that cause issues

This commit is contained in:
Maschell 2023-01-26 13:16:47 +01:00
parent ac3e01fa75
commit aeb9254da7
4 changed files with 19 additions and 4 deletions

View File

@ -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,

View File

@ -23,4 +23,5 @@ NMColor COLOR_RED = {237, 28, 36, 255};
int32_t gThreadPriorityIncrease = 1;
bool gBlockDRCScreenshots = false;
bool gBlockDRCScreenshots = false;
bool gBlockScreenshots = false;

View File

@ -26,4 +26,5 @@ extern NMColor COLOR_RED;
extern int32_t gThreadPriorityIncrease;
extern bool gBlockDRCScreenshots;
extern bool gBlockDRCScreenshots;
extern bool gBlockScreenshots;

View File

@ -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;
}
}