From 8c5b719469bc61e33a451d9b3aeb66c7b0a6d68e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 19 Jul 2024 03:51:23 -0400 Subject: Added savedata analyzer --- src/ap_state.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ap_state.cpp') diff --git a/src/ap_state.cpp b/src/ap_state.cpp index ebc5fc9..f8d4ee0 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp @@ -52,6 +52,8 @@ struct APState { std::list tracked_data_storage_keys; std::string victory_data_storage_key; + std::string save_name; + std::map inventory; std::set checked_locations; std::map data_storage; @@ -131,6 +133,7 @@ struct APState { cert_store); } + save_name.clear(); inventory.clear(); checked_locations.clear(); data_storage.clear(); @@ -228,6 +231,8 @@ struct APState { fmt::format("Connected to Archipelago! ({}@{})", player, server)); TrackerLog("Connected to Archipelago!"); + save_name = fmt::format("zzAP_{}_{}.save", apclient->get_seed(), + apclient->get_player_number()); data_storage_prefix = fmt::format("Lingo_{}_", apclient->get_player_number()); door_shuffle_mode = slot_data["shuffle_doors"].get(); @@ -509,6 +514,8 @@ void AP_Connect(std::string server, std::string player, std::string password) { GetState().Connect(server, player, password); } +std::string AP_GetSaveName() { return GetState().save_name; } + bool AP_HasCheckedGameLocation(int location_id) { return GetState().HasCheckedGameLocation(location_id); } -- cgit 1.4.1