Skip to content

Commit

Permalink
fku
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Aug 8, 2024
1 parent 76c0f0c commit db68cfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/download_mods.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,16 @@ inline void getListAndStartDownloadingMods() {

auto json = parse.value();
log::debug("{}", json.dump(4));
GEODE_ANDROID(log::error("{}", json.dump(4)));

if (auto list = json.try_get<matjson::Array>("list")) {
auto temp_id = 0;
for (auto url : list.value()) {
mods_list[temp_id] = url.as_string();
GEODE_ANDROID(
log::error("debug: mods_list[{}] = ", temp_id, mods_list[temp_id])
);
log::debug("debug: mods_list[{}] = ", temp_id, mods_list[temp_id]);
temp_id++;
GEODE_ANDROID(log::error("debug: mods_list[{}] = ", temp_id, mods_list[temp_id]));
log::debug("mods_list[{}] = ", temp_id, mods_list[temp_id]);
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/links.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ inline web::WebTask web_send_replace(web::WebRequest* __this, std::string_view m
std::regex("www.boomlings.com\\/database"),
server.string()
);
GEODE_ANDROID(log::error("{}.url = {}", __FUNCTION__, url));
log::debug("{}.url = {}", __FUNCTION__, url);
return __this->send(method, std::string_view(url));
return __this->send(method, url);
};

$execute{
Expand Down

0 comments on commit db68cfb

Please sign in to comment.