Skip to content

Commit

Permalink
Debugger: Add config for remote debugger on start.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Jun 8, 2018
1 parent f02bd4d commit f81fa27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Core/Config.cpp
Expand Up @@ -380,6 +380,7 @@ static ConfigSetting generalSettings[] = {
ConfigSetting("RemoteISOManualConfig", &g_Config.bRemoteISOManual, false), ConfigSetting("RemoteISOManualConfig", &g_Config.bRemoteISOManual, false),
ConfigSetting("RemoteShareOnStartup", &g_Config.bRemoteShareOnStartup, false), ConfigSetting("RemoteShareOnStartup", &g_Config.bRemoteShareOnStartup, false),
ConfigSetting("RemoteISOSubdir", &g_Config.sRemoteISOSubdir, "/"), ConfigSetting("RemoteISOSubdir", &g_Config.sRemoteISOSubdir, "/"),
ConfigSetting("RemoteDebuggerOnStartup", &g_Config.bRemoteDebuggerOnStartup, false),


#ifdef __ANDROID__ #ifdef __ANDROID__
ConfigSetting("ScreenRotation", &g_Config.iScreenRotation, 1), ConfigSetting("ScreenRotation", &g_Config.iScreenRotation, 1),
Expand Down
1 change: 1 addition & 0 deletions Core/Config.h
Expand Up @@ -141,6 +141,7 @@ struct Config {
bool bRemoteISOManual; bool bRemoteISOManual;
bool bRemoteShareOnStartup; bool bRemoteShareOnStartup;
std::string sRemoteISOSubdir; std::string sRemoteISOSubdir;
bool bRemoteDebuggerOnStartup;
bool bMemStickInserted; bool bMemStickInserted;


int iScreenRotation; // The rotation angle of the PPSSPP UI. Only supported on Android and possibly other mobile platforms. int iScreenRotation; // The rotation angle of the PPSSPP UI. Only supported on Android and possibly other mobile platforms.
Expand Down
8 changes: 5 additions & 3 deletions UI/NativeApp.cpp
Expand Up @@ -587,10 +587,12 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
screenManager->switchScreen(new LogoScreen()); screenManager->switchScreen(new LogoScreen());
} }


if (g_Config.bRemoteShareOnStartup) { if (g_Config.bRemoteShareOnStartup && g_Config.bRemoteDebuggerOnStartup)
// TODO: Separate config options.
StartWebServer(WebServerFlags::ALL); StartWebServer(WebServerFlags::ALL);
} else if (g_Config.bRemoteShareOnStartup)
StartWebServer(WebServerFlags::DISCS);
else if (g_Config.bRemoteDebuggerOnStartup)
StartWebServer(WebServerFlags::DEBUGGER);


std::string sysName = System_GetProperty(SYSPROP_NAME); std::string sysName = System_GetProperty(SYSPROP_NAME);
isOuya = KeyMap::IsOuya(sysName); isOuya = KeyMap::IsOuya(sysName);
Expand Down

0 comments on commit f81fa27

Please sign in to comment.