mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-25 12:54:58 +00:00
Implemented parsing of instruction patches in config file
This commit is contained in:
parent
7df3e28c76
commit
9949813018
2 changed files with 50 additions and 6 deletions
|
@ -33,6 +33,12 @@ namespace RecompPort {
|
|||
// Mapping of function name to argument types
|
||||
using DeclaredFunctionMap = std::unordered_map<std::string, std::vector<FunctionArgType>>;
|
||||
|
||||
struct InstructionPatch {
|
||||
std::string func_name;
|
||||
int32_t vram;
|
||||
uint32_t value;
|
||||
};
|
||||
|
||||
struct Config {
|
||||
int32_t entrypoint;
|
||||
std::filesystem::path elf_path;
|
||||
|
@ -40,6 +46,7 @@ namespace RecompPort {
|
|||
std::filesystem::path relocatable_sections_path;
|
||||
std::vector<std::string> stubbed_funcs;
|
||||
DeclaredFunctionMap declared_funcs;
|
||||
std::vector<InstructionPatch> instruction_patches;
|
||||
|
||||
Config(const char* path);
|
||||
bool good() { return !bad; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue