ams_mitm: Implement emummc Nintendo folder redirection
This commit is contained in:
@@ -50,9 +50,9 @@ namespace ams::dmnt::cheat::impl {
|
||||
CheatEntry cheat_entries[MaxCheatCount] = {};
|
||||
std::map<u64, FrozenAddressValue> frozen_addresses_map;
|
||||
|
||||
alignas(0x1000) u8 detect_thread_stack[ThreadStackSize] = {};
|
||||
alignas(0x1000) u8 debug_events_thread_stack[ThreadStackSize] = {};
|
||||
alignas(0x1000) u8 vm_thread_stack[ThreadStackSize] = {};
|
||||
alignas(os::MemoryPageSize) u8 detect_thread_stack[ThreadStackSize] = {};
|
||||
alignas(os::MemoryPageSize) u8 debug_events_thread_stack[ThreadStackSize] = {};
|
||||
alignas(os::MemoryPageSize) u8 vm_thread_stack[ThreadStackSize] = {};
|
||||
private:
|
||||
static void DetectLaunchThread(void *_this);
|
||||
static void VirtualMachineThread(void *_this);
|
||||
|
||||
@@ -24,14 +24,14 @@ namespace ams::dmnt::cheat::impl {
|
||||
class DebugEventsManager {
|
||||
public:
|
||||
static constexpr size_t NumCores = 4;
|
||||
static constexpr size_t ThreadStackSize = 0x1000;
|
||||
static constexpr size_t ThreadStackSize = os::MemoryPageSize;
|
||||
static constexpr size_t ThreadPriority = 24;
|
||||
private:
|
||||
std::array<os::MessageQueue, NumCores> message_queues;
|
||||
std::array<os::Thread, NumCores> threads;
|
||||
os::Event continued_event;
|
||||
|
||||
alignas(0x1000) u8 thread_stacks[NumCores][ThreadStackSize];
|
||||
alignas(os::MemoryPageSize) u8 thread_stacks[NumCores][ThreadStackSize];
|
||||
private:
|
||||
static void PerCoreThreadFunction(void *_this) {
|
||||
/* This thread will wait on the appropriate message queue. */
|
||||
|
||||
Reference in New Issue
Block a user