#ifndef PS2RECOMP_TOML_GENERATOR_H #define PS2RECOMP_TOML_GENERATOR_H #include "ps2recomp/elf_analysis_context.h" #include "ps2recomp/types.h" #include #include #include #include #include #include namespace ps2recomp { struct TomlGeneratorInput { const std::string &elfPath; const ElfAnalysisContext &context; const std::unordered_set &libFunctions; const std::unordered_set &untrackedStubFunctions; const std::unordered_map &mmioByInstructionAddress; const std::vector &jumpTables; const std::map &patches; const std::map &patchReasons; const std::map &performanceCriticalReasons; }; class TomlGenerator { public: static bool generate(const TomlGeneratorInput &input, const std::string &outputPath); private: static std::string escapeBackslashes(const std::string &path); }; } #endif // PS2RECOMP_TOML_GENERATOR_H