Savestates Support For PS3 Emulation (#10478)

This commit is contained in:
Elad Ashkenazi 2022-07-04 16:02:17 +03:00 committed by GitHub
parent 969b9eb89d
commit fcd297ffb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
154 changed files with 4948 additions and 635 deletions

View file

@ -1,8 +1,10 @@
#include "stdafx.h"
#include "PPUFunction.h"
#include "Utilities/JIT.h"
#include "util/serialization.hpp"
#include "PPUModule.h"
#include "PPUInterpreter.h"
// Get function name by FNID
extern std::string ppu_get_function_name(const std::string& _module, u32 fnid)
@ -1943,6 +1945,16 @@ auto gen_ghc_cpp_trampoline(ppu_intrp_func_t fn_target)
#error "Not implemented!"
#endif
ppu_function_manager::ppu_function_manager(utils::serial& ar)
: addr(ar)
{
}
void ppu_function_manager::save(utils::serial& ar)
{
ar(addr);
}
std::vector<ppu_intrp_func_t>& ppu_function_manager::access(bool ghc)
{
static std::vector<ppu_intrp_func_t> list