Make sure people actually read this message

This commit is contained in:
BernardoGiordano 2019-09-11 21:28:52 +02:00
parent 7a100575ae
commit 259d120d8f
3 changed files with 9 additions and 7 deletions

View file

@ -45,6 +45,7 @@ inline const SDL_Color COLOR_GREY_DARK = FC_MakeColor(79, 79, 79, 255);
inline const SDL_Color COLOR_GREY_MEDIUM = FC_MakeColor(94, 94, 94, 255);
inline const SDL_Color COLOR_GREY_LIGHT = FC_MakeColor(138, 138, 138, 255);
inline const SDL_Color COLOR_HIGHBLUE = FC_MakeColor(48, 65, 106, 255);
inline const SDL_Color COLOR_WATERMARK = FC_MakeColor(255, 0, 0, 140);
struct Theme {
SDL_Color c0;

View file

@ -81,6 +81,13 @@ void SDLH_ClearScreen(SDL_Color color)
void SDLH_Render(void)
{
// show watermark for album users
if (appletGetAppletType() != AppletType_Application) {
static const char* s = "Please not run Checkpoint in applet mode.";
SDLH_DrawRect(0, 0, 1280, 720, COLOR_WATERMARK);
SDLH_DrawText(36, 260, 340, COLOR_WHITE, s);
}
g_currentTime = SDL_GetTicks() / 1000.f;
SDL_RenderPresent(s_renderer);
}

View file

@ -48,14 +48,8 @@ Result servicesInit(void)
io::createDirectory("sdmc:/switch/Checkpoint");
io::createDirectory("sdmc:/switch/Checkpoint/saves");
io::createDirectory("sdmc:/switch/Checkpoint/cheats");
Logger::getInstance().log(Logger::INFO, "Starting Checkpoint loading...");
// int appletType = (int)appletGetAppletType();
// if (appletType != AppletType_Application) {
// Logger::getInstance().log(Logger::ERROR, "Please run Checkpoint under Atmosphére title takeover. AppletType is %d.", appletType);
// return -1;
// }
Logger::getInstance().log(Logger::INFO, "Starting Checkpoint loading...");
Result socinit = 0;
if ((socinit = socketInitializeDefault()) == 0) {