put decoded replay save in tempDir
This commit is contained in:
@@ -72,6 +72,7 @@ extern rectangle shop_frame;
|
|||||||
extern enum_map(eGuiArea, rectangle) win_to_rects;
|
extern enum_map(eGuiArea, rectangle) win_to_rects;
|
||||||
|
|
||||||
std::string scenario_temp_dir_name = "scenario";
|
std::string scenario_temp_dir_name = "scenario";
|
||||||
|
extern fs::path tempDir;
|
||||||
|
|
||||||
/* Display globals */
|
/* Display globals */
|
||||||
short combat_posing_monster = -1, current_working_monster = -1; // 0-5 PC 100 + x - monster x
|
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();
|
auto next_action = pop_next_action();
|
||||||
std::string t = next_action->Value();
|
std::string t = next_action->Value();
|
||||||
if (t == "load_party") {
|
if (t == "load_party") {
|
||||||
decode_file(next_action->GetText(), "temp.exg");
|
decode_file(next_action->GetText(), tempDir / "temp.exg");
|
||||||
load_party("temp.exg", univ);
|
load_party(tempDir / "temp.exg", univ);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user