mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-11 17:58:29 +12:00
Add load_rom http server command
This commit is contained in:
parent
da3ec42326
commit
63f9cfe0c2
3 changed files with 60 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <array>
|
||||
#include <atomic>
|
||||
#include <condition_variable>
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
@ -12,7 +13,7 @@
|
|||
|
||||
#include "helpers.hpp"
|
||||
|
||||
enum class HttpActionType { None, Screenshot, Key };
|
||||
enum class HttpActionType { None, Screenshot, Key, LoadRom };
|
||||
|
||||
class Emulator;
|
||||
namespace httplib {
|
||||
|
@ -42,6 +43,7 @@ class HttpAction {
|
|||
|
||||
static std::unique_ptr<HttpAction> createScreenshotAction(DeferredResponseWrapper& response);
|
||||
static std::unique_ptr<HttpAction> createKeyAction(uint32_t key, bool state);
|
||||
static std::unique_ptr<HttpAction> createLoadRomAction(std::filesystem::path path, bool paused);
|
||||
};
|
||||
|
||||
struct HttpServer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue