Refactor so parallel-rdp is in charge of polling inputs and not the EmuThread
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include <capstone/capstone.h>
|
||||
#include <utils/log.hpp>
|
||||
#include <utils/MemoryHelpers.hpp>
|
||||
#include <portable_endian_bswap.h>
|
||||
#include <array>
|
||||
|
||||
struct Disassembler {
|
||||
@@ -19,7 +18,7 @@ struct Disassembler {
|
||||
return ret;
|
||||
}
|
||||
|
||||
DisassemblyResult Disassemble(u32 address, u32 instruction) {
|
||||
DisassemblyResult Disassemble(const u32 address, const u32 instruction) {
|
||||
return details ? DisassembleDetailed(address, instruction) : DisassembleSimple(address, instruction);
|
||||
}
|
||||
|
||||
@@ -29,7 +28,7 @@ private:
|
||||
DisassemblyResult DisassembleDetailed(u32 address, u32 instruction);
|
||||
DisassemblyResult DisassembleSimple(u32 address, u32 instruction);
|
||||
|
||||
Disassembler(bool rsp) : rsp(rsp) {
|
||||
explicit Disassembler(const bool rsp) : rsp(rsp) {
|
||||
if (cs_open(CS_ARCH_MIPS, static_cast<cs_mode>((rsp ? CS_MODE_32 : CS_MODE_64) | CS_MODE_BIG_ENDIAN), &handle) !=
|
||||
CS_ERR_OK) {
|
||||
Util::panic("Could not initialize {} disassembler!", rsp ? "RSP" : "CPU");
|
||||
@@ -43,5 +42,5 @@ private:
|
||||
|
||||
bool rsp = false;
|
||||
bool details = true;
|
||||
csh handle;
|
||||
csh handle{};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user