Skip to content

Commit

Permalink
Only check for save data if a title for it is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 10, 2022
1 parent 50ee95e commit 0b7729e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ int main()
mkdir("sdmc:/luma/titles/00040000000C4F00/romfs/Common/Sound", 0777);
break;
}
ss2SaveFound = (access(ss2SavePath, F_OK) == 0);
}

for (int i = 0; i < 3; i++) {
Expand All @@ -388,6 +389,9 @@ int main()
saveRegion[2] = CFG_REGION_JPN;
break;
}
if (R_SUCCEEDED(res)) {
ss3SaveFound = (access(ss3SavePath, F_OK) == 0);
}

for (int i = 0; i < 3; i++) {
path4[1] = ss4Id[i];
Expand Down Expand Up @@ -438,12 +442,9 @@ int main()
readDanceCpk();
break;
}
ss4SaveFound = foundSS4Save();
}

ss2SaveFound = (access(ss2SavePath, F_OK) == 0);
ss3SaveFound = (access(ss3SavePath, F_OK) == 0);
ss4SaveFound = foundSS4Save();

ss3DLCharactersBackedUp = (access("sdmc:/3ds/SavvyManager/SS3/dlCharacters.bak", F_OK) == 0);

sprintf(verText, "Ver. %i.%i.%i", VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO);
Expand Down

0 comments on commit 0b7729e

Please sign in to comment.