Minor future-proofing

This commit is contained in:
Michael Theall 2020-05-07 23:30:23 -05:00
parent 900df7882d
commit 75d507425a
8 changed files with 9 additions and 4 deletions

View File

@ -28,6 +28,7 @@
#include "imgui.h"
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <vector>

View File

@ -77,6 +77,7 @@ bool s_backlight = true;
aptHookCookie s_aptHookCookie;
#ifdef CLASSIC
/// \brief Host address
in_addr_t s_addr = 0;
#else
/// \brief Clear color

View File

@ -22,6 +22,7 @@
#include <cinttypes>
#include <cstdio>
#include <string>
#if defined(NDS) || defined(_3DS) || defined(__SWITCH__)
#define getline __getline

View File

@ -25,7 +25,7 @@
#include <sys/stat.h>
//#include <algorithm>
#include <limits>
namespace
{

View File

@ -39,6 +39,7 @@ PrintConsole g_sessionConsole;
namespace
{
/// \brief Host address
struct in_addr s_addr = {0};
/// \brief Whether to power backlight
bool s_backlight = true;

View File

@ -23,6 +23,8 @@
#ifndef CLASSIC
#include <deko3d.hpp>
#include <cstdint>
namespace imgui
{
namespace deko3d

View File

@ -55,7 +55,7 @@ void userAppInit ()
appletLockExit ();
romfsInit ();
plInitialize ();
plInitialize (PlServiceType_User);
psmInitialize ();
nifmInitialize (NifmServiceType_User);
socketInitialize (&s_socketInitConfig);

View File

@ -57,6 +57,7 @@ bool s_backlight = true;
AppletHookCookie s_appletHookCookie;
#ifdef CLASSIC
/// \brief Host address
in_addr_t s_addr = 0;
#else
/// \brief Texture index
@ -527,8 +528,6 @@ void drawStatus ()
}
}
bool platform::init ()
{
#ifdef CLASSIC