Skip to content

Commit

Permalink
Save race result image to writable data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vkedwardli committed Nov 4, 2023
1 parent a6e20ef commit f2979b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/hw/naomi/printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#include "types.h"
#include "stdclass.h"
#include "printer.h"
#include "serialize.h"
#include "rend/gui.h"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f2979b2

Please sign in to comment.