rsx: implement serialization of rsx states.

This commit is contained in:
Vincent Lejeune 2016-07-18 23:39:24 +02:00
parent 2528fc4555
commit 15500d4ee9
4 changed files with 47 additions and 0 deletions

View file

@ -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();
}