mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-28 17:39:16 -04:00
refactor: refactor runtime and recompile for better workflow and correct generating code and analyze output
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <filesystem>
|
||||
|
||||
namespace ps2recomp
|
||||
@@ -38,6 +39,7 @@ namespace ps2recomp
|
||||
|
||||
std::unordered_map<uint32_t, std::vector<Instruction>> m_decodedFunctions;
|
||||
std::unordered_map<std::string, bool> m_skipFunctions;
|
||||
std::unordered_set<std::string> m_stubFunctions;
|
||||
std::map<uint32_t, std::string> m_generatedStubs;
|
||||
std::unordered_map<uint32_t, std::string> m_functionRenames;
|
||||
CodeGenerator::BootstrapInfo m_bootstrapInfo;
|
||||
@@ -45,6 +47,7 @@ namespace ps2recomp
|
||||
bool decodeFunction(Function &function);
|
||||
void discoverAdditionalEntryPoints();
|
||||
bool shouldSkipFunction(const std::string &name) const;
|
||||
bool isStubFunction(const std::string &name) const;
|
||||
std::string generateRuntimeHeader();
|
||||
bool generateFunctionHeader();
|
||||
bool generateStubHeader();
|
||||
|
||||
Reference in New Issue
Block a user