Add conf to blacklist

This commit is contained in:
J-D-K
2018-08-15 01:51:18 -04:00
parent f999171da6
commit da7944aaa0
6 changed files with 16 additions and 10 deletions

View File

@@ -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
#---------------------------------------------------------------------------------

View File

@@ -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();

View File

@@ -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;

View File

@@ -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;

View File

@@ -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)
{

View File

@@ -171,8 +171,8 @@ namespace util
void debugPrintf(const char *out)
{
#ifdef __debug__
#ifdef __debug__
printf("%s", out);
#endif
#endif
}
}