Skip to content

Commit

Permalink
Fixing a crash when emuiibo is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Slluxx committed Oct 31, 2023
1 parent 5c42a29 commit 08fc0d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ INCLUDES := include
#ROMFS := romfs
APP_TITLE := AmiiboGenerator
APP_AUTHOR := Slluxx
APP_VERSION := 2.1.0
APP_VERSION := 2.1.1

#---------------------------------------------------------------------------------
# options for code generation
Expand Down
4 changes: 4 additions & 0 deletions source/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ namespace UTIL

static bool checkAmiiboDatabase()
{
if (!std::filesystem::exists("sdmc:/emuiibo/")){
std::filesystem::create_directories("sdmc:/emuiibo/");
}

if (!std::filesystem::exists("sdmc:/emuiibo/amiibos.json"))
{
printf("Amiibo database not present. Updating ...\n");
Expand Down

0 comments on commit 08fc0d2

Please sign in to comment.