mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Only boot .firm payloads on 3DS consoles
This commit is contained in:
parent
54fda40715
commit
92555268ab
@ -94,8 +94,8 @@ void getDirectoryContents (vector<DirEntry>& dirContents) {
|
||||
|| (dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "NDS")
|
||||
|| (dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "argv")
|
||||
|| (dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "ARGV")
|
||||
|| (isDSiMode() && sdMounted && dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "firm")
|
||||
|| (isDSiMode() && sdMounted && dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "FIRM"))
|
||||
|| (isDSiMode() && is3DS && sdMounted && dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "firm")
|
||||
|| (isDSiMode() && is3DS && sdMounted && dirEntry.name.substr(dirEntry.name.find_last_of(".") + 1) == "FIRM"))
|
||||
{
|
||||
dirEntry.isApp = true;
|
||||
} else {
|
||||
|
||||
@ -41,6 +41,7 @@ char titleName[32] = {" "};
|
||||
int screenMode = 0;
|
||||
|
||||
bool isRegularDS = true;
|
||||
bool is3DS = true;
|
||||
|
||||
bool applaunch = false;
|
||||
|
||||
@ -132,6 +133,11 @@ int main(int argc, char **argv) {
|
||||
yHeld = true;
|
||||
}
|
||||
sdMounted = sdMount();
|
||||
if (access("sd:/Nintendo 3DS", F_OK) != 0) {
|
||||
is3DS = false;
|
||||
}
|
||||
} else {
|
||||
is3DS = false;
|
||||
}
|
||||
if (!isDSiMode() || !yHeld) {
|
||||
flashcardMounted = flashcardMount();
|
||||
|
||||
@ -9,9 +9,9 @@ extern char titleName[32];
|
||||
extern int screenMode;
|
||||
|
||||
extern bool isRegularDS;
|
||||
extern bool is3DS;
|
||||
|
||||
extern bool applaunch;
|
||||
|
||||
|
||||
|
||||
#endif //MAIN_H
|
||||
|
||||
Loading…
Reference in New Issue
Block a user