mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2026-09-07 17:26:25 -05:00
Update headers to use new namespace in N64ModernRuntime (#74)
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -1434,7 +1434,7 @@ int main(int argc, char** argv) {
|
||||
std::ofstream func_header_file{ config.output_func_path / "funcs.h" };
|
||||
|
||||
fmt::print(func_header_file,
|
||||
"#include \"recomp.h\"\n"
|
||||
"#include \"librecomp/recomp.h\"\n"
|
||||
"\n"
|
||||
"#ifdef __cplusplus\n"
|
||||
"extern \"C\" {{\n"
|
||||
@@ -1541,7 +1541,7 @@ int main(int argc, char** argv) {
|
||||
single_output_file.open(config.output_func_path / config.elf_path.stem().replace_extension(".c"));
|
||||
// Write the file header
|
||||
fmt::print(single_output_file,
|
||||
"#include \"recomp.h\"\n"
|
||||
"#include \"librecomp/recomp.h\"\n"
|
||||
"#include \"disable_warnings.h\"\n"
|
||||
"#include \"funcs.h\"\n"
|
||||
"\n");
|
||||
@@ -1659,7 +1659,7 @@ int main(int argc, char** argv) {
|
||||
std::ofstream lookup_file{ config.output_func_path / "lookup.cpp" };
|
||||
|
||||
fmt::print(lookup_file,
|
||||
"#include \"recomp.h\"\n"
|
||||
"#include \"librecomp/recomp.h\"\n"
|
||||
"\n"
|
||||
);
|
||||
|
||||
@@ -1685,9 +1685,9 @@ int main(int argc, char** argv) {
|
||||
std::string section_load_table = "static SectionTableEntry section_table[] = {\n";
|
||||
|
||||
fmt::print(overlay_file,
|
||||
"#include \"recomp.h\"\n"
|
||||
"#include \"librecomp/recomp.h\"\n"
|
||||
"#include \"funcs.h\"\n"
|
||||
"#include \"sections.h\"\n"
|
||||
"#include \"librecomp/sections.h\"\n"
|
||||
"\n"
|
||||
);
|
||||
|
||||
|
||||
@@ -1103,7 +1103,7 @@ bool RecompPort::recompile_function(const RecompPort::Context& context, const Re
|
||||
if (write_header) {
|
||||
// Write the file header
|
||||
fmt::print(output_file,
|
||||
"#include \"recomp.h\"\n"
|
||||
"#include \"librecomp/recomp.h\"\n"
|
||||
"#include \"disable_warnings.h\"\n"
|
||||
"\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user