mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-11 17:58:29 +12:00
Remove globals, change conditional compilation, doormat
This commit is contained in:
parent
b8fa5fc86d
commit
57c45cf58a
4 changed files with 15 additions and 12 deletions
|
@ -1,19 +1,22 @@
|
|||
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
|
||||
#include "helpers.hpp"
|
||||
|
||||
enum class HttpAction { None, Screenshot, PressKey, ReleaseKey };
|
||||
|
||||
constexpr const char* httpServerScreenshotPath = "screenshot.png";
|
||||
struct HttpServer {
|
||||
static constexpr const char* httpServerScreenshotPath = "screenshot.png";
|
||||
|
||||
struct HttpServer
|
||||
{
|
||||
std::atomic_bool pendingAction = false;
|
||||
std::atomic_bool pendingAction = false;
|
||||
HttpAction action = HttpAction::None;
|
||||
std::mutex actionMutex = {};
|
||||
u32 pendingKey = 0;
|
||||
|
||||
void startHttpServer();
|
||||
};
|
||||
};
|
||||
|
||||
#endif // PANDA3DS_ENABLE_HTTP_SERVER
|
Loading…
Add table
Add a link
Reference in a new issue