Refactor http server

This commit is contained in:
offtkp 2023-07-24 10:37:02 +03:00
parent 4a24a331da
commit 3a21661f45
5 changed files with 212 additions and 152 deletions

View file

@ -63,6 +63,7 @@ class Emulator {
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
HttpServer httpServer;
friend class HttpServer;
#endif
// Keep the handle for the ROM here to reload when necessary and to prevent deleting it
@ -93,8 +94,4 @@ class Emulator {
bool loadELF(const std::filesystem::path& path);
bool loadELF(std::ifstream& file);
void initGraphicsContext();
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
void pollHttpServer();
#endif
};