Skip to content

Commit

Permalink
i don't have time
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 committed Oct 25, 2024
1 parent 66b09ea commit 630de24
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(IntegratedDemonlist VERSION 1.6.3)
project(IntegratedDemonlist VERSION 1.6.4)

add_library(${PROJECT_NAME} SHARED
src/IDListLayer.cpp
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Integrated Demonlist Changelog
## v1.6.4 (2024-10-24)
- Temporarily fixed a crashing issue with the Pemonlist that would cause the game to not launch

## v1.6.3 (2024-09-04)
- Fixed the Pemonlist not loading at all

Expand Down
5 changes: 2 additions & 3 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"geode": "3.4.0",
"geode": "3.8.1",
"gd": {
"android": "2.206",
"win": "2.206",
"mac": "2.206"
},
"version": "v1.6.3",
"version": "v1.6.4",
"id": "hiimjustin000.integrated_demonlist",
"name": "Integrated Demonlist",
"developer": "hiimjustin000",
"description": "A mod that integrates aredl.net and pemonlist.com into Geometry Dash.",
"repository": "https://github.com/hiimjustin000/IntegratedDemonlist",
"resources": {
"sprites": [
"resources/*.png"
Expand Down
8 changes: 6 additions & 2 deletions src/IntegratedDemonlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

#define AREDL_URL "https://api.aredl.net/api/aredl/levels"
#define AREDL_PACKS_URL "https://api.aredl.net/api/aredl/packs"
#define PEMONLIST_URL "https://pemonlist.com/api/list"
#define PEMONLIST_URL "https://pemonlist.com/api/list?version=1"

void IntegratedDemonlist::initializeDemons(web::WebResponse* res, bool pemonlist) {
auto& list = pemonlist ? PEMONLIST : AREDL;
list.clear();
for (auto const& level : res->json().value().as_array()) {
auto str = res->string().value();
std::string error;
auto json = matjson::parse(str, error).value_or(matjson::Array());
if (!error.empty()) log::error("Failed to parse {}: {}", pemonlist ? "Pemonlist" : "AREDL", error);
if (json.is_array()) for (auto const& level : json.as_array()) {
if (pemonlist || ((!level.contains("legacy") || !level["legacy"].as_bool()) && !level["two_player"].as_bool())) list.push_back({
level["level_id"].as_int(),
level["name"].as_string(),
Expand Down

0 comments on commit 630de24

Please sign in to comment.