mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
UICommon: Make GetNewDisassembler() return a unique_ptr
Much better than just returning raw memory.
This commit is contained in:
parent
1392b88879
commit
13757b7d35
3 changed files with 13 additions and 12 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
class HostDisassembler
|
||||
|
@ -17,6 +18,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
HostDisassembler* GetNewDisassembler(const std::string& arch);
|
||||
std::unique_ptr<HostDisassembler> GetNewDisassembler(const std::string& arch);
|
||||
std::string DisassembleBlock(HostDisassembler* disasm, u32* address, u32* host_instructions_count,
|
||||
u32* code_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue