diff --git a/Makefile b/Makefile index 5102357..2d1a974 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ INCLUDES := inc EXEFS_SRC := exefs_src APP_TITLE := JKSV APP_AUTHOR := JK_ -APP_VERSION := 08/05/2018 +APP_VERSION := 08/15/2018 ROMFS := romfs #--------------------------------------------------------------------------------- diff --git a/src/main.cpp b/src/main.cpp index fefcbab..32a5489 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,10 +38,10 @@ int main(int argc, const char *argv[]) ui::init(); //built with 'make debug CFLAGS:=-D__debug__' - #ifdef __debug__ +#ifdef __debug__ socketInitializeDefault(); nxlinkStdio(); - #endif +#endif bool run = true; while(appletMainLoop() && run) @@ -75,9 +75,9 @@ int main(int argc, const char *argv[]) gfxHandleBuffs(); } - #ifdef __debug__ +#ifdef __debug__ socketExit(); - #endif +#endif graphicsExit(); ui::exit(); diff --git a/src/ui.cpp b/src/ui.cpp index 0fd8f50..f4b4711 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -11,7 +11,7 @@ #include "util.h" #include "file.h" -#define TITLE_TEXT "JKSV - 08/05/2018" +#define TITLE_TEXT "JKSV - 08/15/2018" //background that can be drawn from "/JKSV/back.jpg" static tex *background = NULL; diff --git a/src/ui/clsui.cpp b/src/ui/clsui.cpp index 7d954fe..64664c1 100644 --- a/src/ui/clsui.cpp +++ b/src/ui/clsui.cpp @@ -102,7 +102,10 @@ namespace ui } else if(down & KEY_X || ttlNav[2].getEvent() == BUTTON_RELEASED) { - data::blacklistAdd(data::curUser.titles[titleMenu.getSelected()]); + std::string confStr = "Are you 100% sure you want to add \"" + data::curUser.titles[titleMenu.getSelected()].getTitle() + \ + "\" to your blacklist?"; + if(ui::confirm(confStr)) + data::blacklistAdd(data::curUser.titles[titleMenu.getSelected()]); } else if(down & KEY_B || ttlNav[3].getEvent() == BUTTON_RELEASED) mstate = CLS_USR; diff --git a/src/ui/ttlsel.cpp b/src/ui/ttlsel.cpp index 5d36dc7..ec8894c 100644 --- a/src/ui/ttlsel.cpp +++ b/src/ui/ttlsel.cpp @@ -210,7 +210,10 @@ namespace ui } else if(down & KEY_X || ttlNav[2].getEvent() == BUTTON_RELEASED) { - data::blacklistAdd(data::curUser.titles[selected]); + std::string confStr = "Are you 100% sure you want to add \"" + data::curUser.titles[selected].getTitle() + \ + "\" to your blacklist?"; + if(ui::confirm(confStr)) + data::blacklistAdd(data::curUser.titles[selected]); } else if(down & KEY_B || ttlNav[3].getEvent() == BUTTON_RELEASED) { diff --git a/src/util.cpp b/src/util.cpp index 81c3a41..03d005b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -171,8 +171,8 @@ namespace util void debugPrintf(const char *out) { - #ifdef __debug__ +#ifdef __debug__ printf("%s", out); - #endif +#endif } }