Skip to content

Commit

Permalink
3DS theme: Try to fix Pictochat being opened when opening TWLMenu++ S…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
RocketRobz committed Oct 30, 2023
1 parent 2da06fa commit 62d4d81
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions romsel_dsimenutheme/arm9/source/fileBrowse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3801,20 +3801,6 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
gameTapped = false;

if (ms().theme == TWLSettings::ETheme3DS) {
// Launch TWLMenu++ Settings by touching corner button
if ((pressed & KEY_TOUCH) && touch.py <= 26 && touch.px <= 44) {
if (ms().kioskMode) {
snd().playWrong();
} else {
launchSettings();
}
}

// Exit to system menu by touching corner button
if ((pressed & KEY_TOUCH) && touch.py <= 26 && touch.px >= 212 && !sys().isRegularDS()) {
exitToSystemMenu();
}

int topIconXpos = 116;
for (int i = 0; i < 3; i++) {
topIconXpos -= 16;
Expand Down Expand Up @@ -3863,6 +3849,20 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
topIconOp[3] = 5;
}

// Launch TWLMenu++ Settings by touching corner button
if ((pressed & KEY_TOUCH) && touch.py <= 26 && touch.px <= 44) {
if (ms().kioskMode) {
snd().playWrong();
} else {
launchSettings();
}
} else

// Exit to system menu by touching corner button
if ((pressed & KEY_TOUCH) && touch.py <= 26 && touch.px >= 212 && !sys().isRegularDS()) {
exitToSystemMenu();
} else

for (int i = 0; i < topIconCount; i++) {
if ((pressed & KEY_TOUCH) && touch.py <= 26 && touch.px >= savedTopIconXpos[i] && touch.px < savedTopIconXpos[i] + 24) {
switch (topIconOp[i]) {
Expand Down

0 comments on commit 62d4d81

Please sign in to comment.