Remove globals, change conditional compilation, doormat

This commit is contained in:
wheremyfoodat 2023-07-10 02:29:08 +03:00
parent b8fa5fc86d
commit 57c45cf58a
4 changed files with 15 additions and 12 deletions

View file

@ -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: {

View file

@ -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