mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 09:40:01 +00:00
RSX/Capture: fix filePath and remove strict mode check (#5283)
- Fixes regression introduced by kd-11 when merging in jarves' flip rework.
This commit is contained in:
parent
1cf62e9ded
commit
d56c85fe01
@ -2847,13 +2847,7 @@ namespace rsx
|
|||||||
|
|
||||||
void thread::handle_emu_flip(u32 buffer)
|
void thread::handle_emu_flip(u32 buffer)
|
||||||
{
|
{
|
||||||
if (user_asked_for_frame_capture && !g_cfg.video.strict_rendering_mode)
|
if (user_asked_for_frame_capture && !capture_current_frame)
|
||||||
{
|
|
||||||
// not dealing with non-strict rendering capture for now
|
|
||||||
user_asked_for_frame_capture = false;
|
|
||||||
LOG_FATAL(RSX, "RSX Capture: Capture only supported when ran with strict rendering mode.");
|
|
||||||
}
|
|
||||||
else if (user_asked_for_frame_capture && !capture_current_frame)
|
|
||||||
{
|
{
|
||||||
capture_current_frame = true;
|
capture_current_frame = true;
|
||||||
user_asked_for_frame_capture = false;
|
user_asked_for_frame_capture = false;
|
||||||
@ -2874,10 +2868,10 @@ namespace rsx
|
|||||||
capture_current_frame = false;
|
capture_current_frame = false;
|
||||||
std::stringstream os;
|
std::stringstream os;
|
||||||
cereal::BinaryOutputArchive archive(os);
|
cereal::BinaryOutputArchive archive(os);
|
||||||
const std::string& filePath = fs::get_config_dir() + "capture.rrc";
|
const std::string& filePath = fs::get_config_dir() + "captures/" + Emu.GetTitleID() + "_" + date_time::current_time_narrow() + "_capture.rrc";
|
||||||
archive(frame_capture);
|
archive(frame_capture);
|
||||||
{
|
{
|
||||||
// todo: 'dynamicly' create capture filename, also may want to compress this data?
|
// todo: may want to compress this data?
|
||||||
fs::file f(filePath, fs::rewrite);
|
fs::file f(filePath, fs::rewrite);
|
||||||
f.write(os.str());
|
f.write(os.str());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user