Skip to content
Permalink
Browse files

Added ability to delete Amiibo

This is temporary until I have time to implement a proper menu for deleting and renaming Amiibos.
  • Loading branch information
CompSciOrBust committed Nov 17, 2019
1 parent 1015d70 commit 1c7b00f72c3b6a834ba51b94dd3f85fafe087305
Showing with 10 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +9 −0 source/AmiigoUI.cpp
@@ -45,7 +45,7 @@ INCLUDES := include
#ROMFS := romfs
APP_TITLE := Amiigo
APP_AUTHOR := CompSciOrBust
APP_VERSION := 1.4.3
APP_VERSION := 1.4.4

#---------------------------------------------------------------------------------
# options for code generation
@@ -167,6 +167,15 @@ void AmiigoUI::DrawUI()
*WindowState = MenuList->SelectedIndex;
}
}
//Left stick pressed
else if(Event->jbutton.button == 4)
{
//Delete Amiibo. This is temporary until I have time to implement a proper menu for deleting and renaming
char PathToAmiibo[FS_MAX_PATH] = "sdmc:/emuiibo/amiibo/";
strcat(PathToAmiibo, Files.at(AmiiboList->SelectedIndex).d_name);
fsdevDeleteDirectoryRecursively(PathToAmiibo);
ScanForAmiibos();
}
}
break;
}

0 comments on commit 1c7b00f

Please sign in to comment.
You can’t perform that action at this time.