http: Move web server to core and use flags.

This way we can independently control the debugger and disc sharing, since
debugger could have security impact.
This commit is contained in:
Unknown W. Brackets
2018-06-07 16:28:01 -07:00
parent 042256337a
commit 3a8a2ff933
10 changed files with 329 additions and 204 deletions
+3 -1
View File
@@ -84,6 +84,7 @@
#include "Core/HLE/sceUsbGps.h"
#include "Core/Util/GameManager.h"
#include "Core/Util/AudioFormat.h"
#include "Core/WebServer.h"
#include "GPU/GPUInterface.h"
#include "ui_atlas.h"
@@ -587,7 +588,8 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
}
if (g_Config.bRemoteShareOnStartup) {
StartRemoteISOSharing();
// TODO: Separate config options.
StartWebServer(WebServerFlags::ALL);
}
std::string sysName = System_GetProperty(SYSPROP_NAME);