mirror of
https://github.com/BernardoGiordano/Checkpoint
synced 2024-11-13 21:27:06 +00:00
Make sure people actually read this message
This commit is contained in:
parent
7a100575ae
commit
259d120d8f
3 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue