fix: fix generate header file when single cpp file are enable

This commit is contained in:
Ran-j
2025-11-29 00:17:07 -03:00
parent 7f17931249
commit 69d4d26084
+4 -2
View File
@@ -110,6 +110,8 @@ namespace ps2recomp
{
try
{
generateFunctionHeader();
if (m_config.singleFileOutput)
{
std::stringstream combinedOutput;
@@ -142,7 +144,6 @@ namespace ps2recomp
}
else
{
generateFunctionHeader();
for (const auto &function : m_functions)
{
if (!function.isRecompiled || function.isStub)
@@ -193,6 +194,7 @@ namespace ps2recomp
ss << "#include <cstdint>\n\n";
ss << "struct R5900Context;\n\n";
ss << "class PS2Runtime;\n\n";
for (const auto &function : m_functions)
{
@@ -307,4 +309,4 @@ namespace ps2recomp
return outputPath;
}
}
}