mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-24 12:24:59 +00:00
Made recompilation header include configurable
This commit is contained in:
parent
dfd90057c9
commit
4161ef68cc
4 changed files with 25 additions and 11 deletions
|
@ -58,7 +58,7 @@ JalResolutionResult resolve_jal(const RecompPort::Context& context, size_t cur_s
|
|||
break;
|
||||
}
|
||||
|
||||
// If the function's section isn't non-relocatable, add it as a candidate.
|
||||
// If the function's section isn't relocatable, add the function as a candidate.
|
||||
const auto& target_func_section = context.sections[target_func.section_index];
|
||||
if (!target_func_section.relocatable) {
|
||||
matched_funcs.push_back(target_func_index);
|
||||
|
@ -1204,8 +1204,9 @@ bool RecompPort::recompile_function(const RecompPort::Context& context, const Re
|
|||
if (write_header) {
|
||||
// Write the file header
|
||||
fmt::print(output_file,
|
||||
"#include \"librecomp/recomp.h\"\n"
|
||||
"\n");
|
||||
"{}\n"
|
||||
"\n",
|
||||
config.recomp_include);
|
||||
}
|
||||
|
||||
fmt::print(output_file,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue