diff --git a/changelog.md b/changelog.md index 46d3932..5726cd3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## v0.3.2 +###### 08-09-2024 + +- Fixed being unable to download SFH songs + + ## v0.3.1 ###### 16-08-2024 diff --git a/mod.json b/mod.json index 956a4a0..362d47c 100644 --- a/mod.json +++ b/mod.json @@ -4,7 +4,7 @@ "win": "2.206", "android": "2.206" }, - "version": "0.3.1", + "version": "0.3.2", "id": "flafy.autonong", "name": "Auto Nong", "developer": "Flafy", @@ -51,13 +51,13 @@ "type": "file", "default": "yt-dlp.exe" }, - "indexes": { + "indexes2": { "name": "Indexes", "description": "Auto Nong indexes.\nFrom indexes the mod knows where to fetch the songs from.", "type": "custom", "default": [ "https://cdn.jsdelivr.net/gh/FlafyDev/auto-nong-indexes@dist/official.json.gz", - "https://cdn.jsdelivr.net/gh/FlafyDev/auto-nong-indexes@dist/sfh-rooot.json.gz" + "https://cdn.jsdelivr.net/gh/FlafyDev/auto-nong-indexes@dist/sfh.json.gz" ] }, "show-level-popup": { diff --git a/src/main.cpp b/src/main.cpp index 4aa177c..24dc9d9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,8 +6,8 @@ $on_mod(Loaded) { Mod::get()->addCustomSetting( - "indexes", Mod::get() - ->getSettingDefinition("indexes") + "indexes2", Mod::get() + ->getSettingDefinition("indexes2") ->get() ->json->get>("default")); Mod::get()->addCustomSetting("_blacklistPPClear", 0); @@ -20,5 +20,5 @@ // Reload the indexes on change listenForSettingChanges( - "indexes", +[](MultiStringSettingStruct value) { AutoNongManager::get()->loadIndexes(); }); + "indexes2", +[](MultiStringSettingStruct value) { AutoNongManager::get()->loadIndexes(); }); } diff --git a/src/managers/auto_nong_manager.cpp b/src/managers/auto_nong_manager.cpp index fd38674..1cfcff6 100644 --- a/src/managers/auto_nong_manager.cpp +++ b/src/managers/auto_nong_manager.cpp @@ -406,7 +406,7 @@ void AutoNongManager::downloadSong(std::shared_ptr song, std::optional indexes = - Mod::get()->getSettingValue("indexes").m_strings; + Mod::get()->getSettingValue("indexes2").m_strings; unloadAllIndexes(); loadLocalIndex(); diff --git a/src/ui/multi_string_setting.cpp b/src/ui/multi_string_setting.cpp index 8b3a1e7..5ea3bb4 100644 --- a/src/ui/multi_string_setting.cpp +++ b/src/ui/multi_string_setting.cpp @@ -153,7 +153,7 @@ bool MultiStringSettingNode::init(MultiStringSettingValue *value, float width) { menu->setID("inputs-menu"); // No way to get the JSON without hardcoding the setting ID... - auto settingJson = Mod::get()->getSettingDefinition("indexes")->get()->json; + auto settingJson = Mod::get()->getSettingDefinition("indexes2")->get()->json; m_defaultValue = settingJson->get>("default"); m_name = settingJson->get("name"); m_description = settingJson->get("description");