Remove globals, change conditional compilation, doormat
This commit is contained in:
@@ -429,7 +429,7 @@ void Emulator::pollHttpServer() {
|
||||
if (httpServer.pendingAction) {
|
||||
switch (httpServer.action) {
|
||||
case HttpAction::Screenshot: {
|
||||
screenshot(httpServerScreenshotPath);
|
||||
screenshot(HttpServer::httpServerScreenshotPath);
|
||||
break;
|
||||
}
|
||||
case HttpAction::PressKey: {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
|
||||
#include "httpserver.hpp"
|
||||
|
||||
#include <vector>
|
||||
@@ -97,4 +98,6 @@ void HttpServer::startHttpServer() {
|
||||
server.listen("localhost", 1234);
|
||||
});
|
||||
http_thread.detach();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PANDA3DS_ENABLE_HTTP_SERVER
|
||||
Reference in New Issue
Block a user