mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Don't print save/restore calls when non volatile registers as local variables option is enabled.
This commit is contained in:
@@ -157,7 +157,14 @@ bool Recompiler::Recompile(
|
||||
|
||||
if (targetSymbol != image.symbols.end() && targetSymbol->address == address && targetSymbol->type == Symbol_Function)
|
||||
{
|
||||
println("\t{}(ctx, base);", targetSymbol->name);
|
||||
if (config.nonVolatileRegistersAsLocalVariables && (targetSymbol->name.starts_with("__rest") || targetSymbol->name.starts_with("__save")))
|
||||
{
|
||||
// print nothing
|
||||
}
|
||||
else
|
||||
{
|
||||
println("\t{}(ctx, base);", targetSymbol->name);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user