RSX: use localtime_s instead of localtime

This commit is contained in:
Megamouse 2018-07-23 07:54:53 +02:00
parent f82739afb0
commit d057c79733
6 changed files with 38 additions and 30 deletions

View file

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