From f2979b200a59eff1c808d2f87dc9ff842e968731 Mon Sep 17 00:00:00 2001 From: Edward Li Date: Sun, 5 Nov 2023 05:13:19 +0800 Subject: [PATCH] Save race result image to writable data folder --- core/hw/naomi/printer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hw/naomi/printer.cpp b/core/hw/naomi/printer.cpp index a8c337ec5e..2b98a26c37 100644 --- a/core/hw/naomi/printer.cpp +++ b/core/hw/naomi/printer.cpp @@ -17,6 +17,7 @@ along with Flycast. If not, see . */ #include "types.h" +#include "stdclass.h" #include "printer.h" #include "serialize.h" #include "rend/gui.h" @@ -738,7 +739,7 @@ class ThermalPrinter state = Default; if (bitmapWriter && bitmapWriter->isDirty()) { - std::string s = settings.content.gameId + "-results.png"; + std::string s = get_writable_data_path(settings.content.gameId + "-results.png"); bitmapWriter->save(s); bitmapWriter.reset(); s = "Print out saved to " + s;