mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
rsx: implement serialization of rsx states.
This commit is contained in:
parent
2528fc4555
commit
15500d4ee9
4 changed files with 47 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
#include "rsx_decode.h"
|
||||
#include "Emu/Cell/PPUCallback.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <cereal/archives/binary.hpp>
|
||||
|
||||
#include <thread>
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
|
@ -723,6 +726,13 @@ namespace rsx
|
|||
else if (rsx->capture_current_frame)
|
||||
{
|
||||
rsx->capture_current_frame = false;
|
||||
std::stringstream os;
|
||||
cereal::BinaryOutputArchive archive(os);
|
||||
archive(frame_debug);
|
||||
{
|
||||
fs::file f(fs::get_config_dir() + "capture.txt", fs::rewrite);
|
||||
f.write(os.str());
|
||||
}
|
||||
Emu.Pause();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue