mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Avoid unnecessarily initializing disassembler
This commit is contained in:
parent
5161ef8ff3
commit
f77c9720a6
2 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@ namespace Common {
|
|||
bool initialized = false;
|
||||
|
||||
public:
|
||||
bool isInitialized() { return initialized; }
|
||||
void init(cs_arch arch, cs_mode mode) { initialized = (cs_open(arch, mode, &handle) == CS_ERR_OK); }
|
||||
|
||||
CapstoneDisassembler() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue