mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-28 12:16:48 -05:00
Add conf to blacklist
This commit is contained in:
2
Makefile
2
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
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -171,8 +171,8 @@ namespace util
|
||||
|
||||
void debugPrintf(const char *out)
|
||||
{
|
||||
#ifdef __debug__
|
||||
#ifdef __debug__
|
||||
printf("%s", out);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user