mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-05-28 22:38:47 +02:00
696ebde527
This update took way way too long to create. However, it was worthwhile. :)
26 lines
502 B
C++
26 lines
502 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <err.h>
|
|
#include "switch/common.h"
|
|
#include "ipc.h"
|
|
#include "kernel.h"
|
|
#include "svc.h"
|
|
|
|
namespace lightSwitch::os {
|
|
class OS {
|
|
private:
|
|
device_state state;
|
|
uc_hook hook{};
|
|
public:
|
|
OS(device_state state_);
|
|
|
|
~OS();
|
|
|
|
static void HookInterrupt(uc_engine *uc, uint32_t int_no, void *user_data);
|
|
|
|
static void SvcHandler(uint32_t svc, device_state &state);
|
|
|
|
void SvcHandler(uint32_t svc);
|
|
};
|
|
} |