Skip to content

Commit

Permalink
Automated Master Mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogMan151 committed Jun 23, 2018
1 parent 7adb454 commit e92f242
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 15 deletions.
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Switch
*.nro
*.nca
*.elf
*.nacp
*.nso
*.pfs0
build/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A Work in Progress Save Editor, currently it only to modifies rupees, durability

# Compile

- Use LibNX.
- Use LibNX. Needs SDL2, SDL2_ttf, SDL2_gfx and SDL2_image.

# Disclaimer

Expand Down
18 changes: 4 additions & 14 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ void startSDLServices(){
errorScreen();
}
else{
if (file_exist("save:/6/caption.jpg"))
maxSlot = 7;
else
maxSlot = 5;
getCaption();
selectSlotMenu(slot);
}
Expand Down Expand Up @@ -75,10 +79,8 @@ void initServices(){
currentPage = 1;
currentState = 0;
currentItem = 0;
maxSlot = 5;
romfsInit();
startSDLServices();

}

void setPages(){
Expand Down Expand Up @@ -503,18 +505,6 @@ int main(int argc, char **argv){
if (kDown & KEY_DLEFT) buttonLogic(3);
if (kDown & KEY_A) ConfirmButton();

if(currentState == 0 && kDown & KEY_R){
if(maxSlot == 7){
maxSlot = 5;
}
else{
maxSlot = 7;
}
slot = 0;
getCaption();
selectSlotMenu(slot);
}

if(currentState <= 0){
if (kDown & KEY_PLUS) break;
}
Expand Down

0 comments on commit e92f242

Please sign in to comment.