diff --git a/mod.json b/mod.json index f914240..cba29b6 100644 --- a/mod.json +++ b/mod.json @@ -3,7 +3,7 @@ "gd": { "win": "2.204" }, - "version": "v2.2.3", + "version": "v2.2.4", "id": "maxnu.gd_mega_overlay", "name": "GD Mega Overlay", "developer": "maxnu & SpaghettDev", diff --git a/src/Common.cpp b/src/Common.cpp index 7773370..dc59765 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -56,6 +56,7 @@ void Common::saveIcons() Mod::get()->setSavedValue("icons/color", GameManager::get()->m_playerColor); Mod::get()->setSavedValue("icons/color2", GameManager::get()->m_playerColor2); Mod::get()->setSavedValue("icons/colorglow", GameManager::get()->m_playerGlowColor); + Mod::get()->setSavedValue("icons/glow", GameManager::get()->m_playerGlow); Mod::get()->setSavedValue("icons/streak", GameManager::get()->m_playerStreak); Mod::get()->setSavedValue("icons/shipfire", GameManager::get()->m_playerShipFire); Mod::get()->setSavedValue("icons/death", GameManager::get()->m_playerDeathEffect); @@ -76,6 +77,7 @@ void Common::loadIcons() GameManager::get()->m_playerColor = Settings::get("icons/color", GameManager::get()->m_playerColor); GameManager::get()->m_playerColor2 = Settings::get("icons/color2", GameManager::get()->m_playerColor2); GameManager::get()->m_playerGlowColor = Settings::get("icons/colorglow", GameManager::get()->m_playerGlowColor); + GameManager::get()->m_playerGlow = Settings::get("icons/glow", GameManager::get()->m_playerGlow); GameManager::get()->m_playerStreak = Settings::get("icons/streak", GameManager::get()->m_playerStreak); GameManager::get()->m_playerShipFire = Settings::get("icons/shipfire", GameManager::get()->m_playerShipFire); GameManager::get()->m_playerDeathEffect = Settings::get("icons/death", GameManager::get()->m_playerDeathEffect); diff --git a/src/Macrobot/Macrobot.cpp b/src/Macrobot/Macrobot.cpp index cf4ab1c..d543231 100644 --- a/src/Macrobot/Macrobot.cpp +++ b/src/Macrobot/Macrobot.cpp @@ -338,6 +338,8 @@ void Macrobot::save(const std::string& file) f.close(); FLAlertLayer::create("Info", fmt::format("{} saved with {} inputs.", file, macro.inputs.size()), "Ok")->show(); + + macroList.push_back(file); } void Macrobot::load(const std::string& file) @@ -432,6 +434,8 @@ void Macrobot::drawWindow() void Macrobot::getMacros() { + macroList.clear(); + ghc::filesystem::path macroPath = Mod::get()->getSaveDir() / "macros"; for (const auto& entry : ghc::filesystem::directory_iterator(macroPath))