Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 authored Oct 24, 2024
1 parent ead802e commit f8509f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ using namespace geode::prelude;
return c.get(reinterpret_cast<FriendeeClass__*>(v)); \
}(value)

std::map<std::string, Mod*> ALL_MODS;
#define SETTING(type, key_name) Mod::get()->getSettingValue<type>(key_name)

auto enabled = false;

web::WebTask WebRequest_send(web::WebRequest* self, std::string_view method, std::string_view givenUrl) {
if (enabled and string::contains(givenUrl.data(), "api.geode-sdk.org/v1/mods")) {

if (givenUrl == "https://api.geode-sdk.org/v1/mods") self->param("status", "pending");
if (givenUrl == "https://api.geode-sdk.org/v1/mods") self->param("status", SETTING(std::string, "status param"));

CCNode* version = CCScene::get()->getChildByIDRecursive("version");
CCLabelBMFont* value_label = typeinfo_cast<CCLabelBMFont*>(
Expand Down Expand Up @@ -171,4 +171,4 @@ class $modify(ModListButtons, CCMenuItem) {
};

#if 0
#endif
#endif

0 comments on commit f8509f0

Please sign in to comment.