change rsx_capture filename

This commit is contained in:
Megamouse 2018-06-24 12:43:50 +02:00
parent 7788007cbd
commit f8d396ac9e
4 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "stdafx.h"
#include "date_time.h"
#include "rsx_methods.h"
#include "RSXThread.h"
#include "Emu/Memory/Memory.h"
@ -1106,7 +1107,7 @@ namespace rsx
rsx->capture_current_frame = false;
std::stringstream os;
cereal::BinaryOutputArchive archive(os);
const std::string& filePath = fs::get_config_dir() + "capture.rrc";
const std::string& filePath = fs::get_config_dir() + Emu.GetTitleID() + "_" + get_current_date_time() +"_capture.rrc";
archive(frame_capture);
{
// todo: 'dynamicly' create capture filename, also may want to compress this data?