From b749b6377a91d675fd432afe24e7e9fa174b9010 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 14 Jun 2024 09:23:52 -0600 Subject: [PATCH] put decoded replay save in tempDir --- src/game/boe.main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 3dc485e5..36add767 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -72,6 +72,7 @@ extern rectangle shop_frame; extern enum_map(eGuiArea, rectangle) win_to_rects; std::string scenario_temp_dir_name = "scenario"; +extern fs::path tempDir; /* Display globals */ short combat_posing_monster = -1, current_working_monster = -1; // 0-5 PC 100 + x - monster x @@ -254,8 +255,8 @@ void replay_next_action() { auto next_action = pop_next_action(); std::string t = next_action->Value(); if (t == "load_party") { - decode_file(next_action->GetText(), "temp.exg"); - load_party("temp.exg", univ); + decode_file(next_action->GetText(), tempDir / "temp.exg"); + load_party(tempDir / "temp.exg", univ); } }