mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-28 17:39:16 -04:00
feat: sync recompile and codegen output to match what are expected on runtime
This commit is contained in:
@@ -116,8 +116,9 @@ namespace ps2recomp
|
||||
{
|
||||
std::stringstream combinedOutput;
|
||||
|
||||
combinedOutput << "#include \"ps2_recompiled_functions.h\"\n\n";
|
||||
combinedOutput << "#include \"ps2_runtime_macros.h\"\n";
|
||||
combinedOutput << "#include \"ps2_runtime.h\"\n\n";
|
||||
combinedOutput << "#include \"ps2_runtime.h\"\n";
|
||||
|
||||
for (const auto &function : m_functions)
|
||||
{
|
||||
@@ -149,7 +150,7 @@ namespace ps2recomp
|
||||
}
|
||||
}
|
||||
|
||||
fs::path outputPath = fs::path(m_config.outputPath) / "recompiled.cpp";
|
||||
fs::path outputPath = fs::path(m_config.outputPath) / "ps2_recompiled_functions.cpp";
|
||||
writeToFile(outputPath.string(), combinedOutput.str());
|
||||
std::cout << "Wrote recompiled to combined output to: " << outputPath << std::endl;
|
||||
}
|
||||
@@ -215,7 +216,7 @@ namespace ps2recomp
|
||||
ss << "#define PS2_RECOMPILED_FUNCTIONS_H\n\n";
|
||||
|
||||
ss << "#include <cstdint>\n\n";
|
||||
ss << "struct R5900Context;\n\n";
|
||||
ss << "struct R5900Context;\n";
|
||||
ss << "class PS2Runtime;\n\n";
|
||||
|
||||
for (const auto &function : m_functions)
|
||||
|
||||
Reference in New Issue
Block a user