mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Recompiler: write ppc_context.h
This commit is contained in:
@@ -2097,7 +2097,7 @@ void Recompiler::Recompile(const char* directoryPath)
|
||||
out.reserve(10 * 1024 * 1024);
|
||||
|
||||
{
|
||||
println("#pragma once\n");
|
||||
println("#pragma once");
|
||||
|
||||
println("#ifndef PPC_CONFIG_H_INCLUDED");
|
||||
println("#define PPC_CONFIG_H_INCLUDED\n");
|
||||
@@ -2124,10 +2124,19 @@ void Recompiler::Recompile(const char* directoryPath)
|
||||
SaveCurrentOutData(directoryPath, "ppc_config.h");
|
||||
}
|
||||
|
||||
{
|
||||
println("#pragma once");
|
||||
|
||||
println("#include \"ppc_config.h\"");
|
||||
println("{}", std::string_view{gPPCContextText, gPPCContextText_SIZE});
|
||||
|
||||
SaveCurrentOutData(directoryPath, "ppc_context.h");
|
||||
}
|
||||
|
||||
{
|
||||
println("#pragma once\n");
|
||||
println("#include \"ppc_config.h\"");
|
||||
println("#include <ppc_context.h>\n");
|
||||
println("#include \"ppc_context.h\"\n");
|
||||
|
||||
for (auto& symbol : image.symbols)
|
||||
println("PPC_EXTERN_FUNC({});", symbol.name);
|
||||
|
Reference in New Issue
Block a user