Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Nov 13, 2024
1 parent ac4a86c commit cfe66b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"ios": "2.2074"
},
"id": "user95401.unverified_mods",
"name": "Unverified Mods (Geode v4)",
"version": "v1.5.0-beta.1",
"name": "Unverified Mods",
"version": "v1.5.0",
"developer": "user95401",
"description": "Make you able to see unverified mods.",
"links": {
Expand All @@ -21,7 +21,7 @@
"resources/sprites/*.png"
]
},
"TEMP_REMOVED_OUT__dependencies": [
"dependencies": [
{
"id": "geode.node-ids",
"version": ">=v1.13.1",
Expand Down
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,27 +77,27 @@ void TOGGLE_MAIN() {
//enable not my ones
INIT_WebRequest_send_HOOKS_LIST();
for (auto hook : WebRequest_send_HOOKS_LIST) {
hook->enable();//WHAT_THE_FUCK__log::debug("result: {}", hook->enable().error_or("is ok."));
hook->enable();//FUCK_YOU_WHY_IT_WAS_REMOVED_log::debug("result: {}", hook->enable().error_or("is ok."));
log::debug("hook: {}", hook->getRuntimeInfo().dump());
}
//disable my
MY_WebRequest_send_HOOK->disable();//WHAT_THE_FUCK__log::debug("result: {}", .error_or("is ok."));
MY_WebRequest_send_HOOK->disable();//FUCK_YOU_WHY_IT_WAS_REMOVED_log::debug("result: {}", .error_or("is ok."));
log::debug("hook: {}", MY_WebRequest_send_HOOK->getRuntimeInfo().dump());
}
else {
enabled = 1;
//disable not my ones
INIT_WebRequest_send_HOOKS_LIST();
for (auto hook : WebRequest_send_HOOKS_LIST) {
hook->disable();//WHAT_THE_FUCK__log::debug("result: {}", .error_or("is ok."));
hook->disable();//FUCK_YOU_WHY_IT_WAS_REMOVED_log::debug("result: {}", .error_or("is ok."));
log::debug("hook: {}", hook->getRuntimeInfo().dump());
};
//enable my
if (MY_WebRequest_send_HOOK) MY_WebRequest_send_HOOK->enable();//WHAT_THE_FUCK__log::debug("result: {}", .unwrap<std::string>("is ok."));
if (MY_WebRequest_send_HOOK) MY_WebRequest_send_HOOK->enable();//FUCK_YOU_WHY_IT_WAS_REMOVED_log::debug("result: {}", .unwrap<std::string>("is ok."));
else MY_WebRequest_send_HOOK = Mod::get()->hook(
reinterpret_cast<void*>(getNonVirtual(&web::WebRequest::send)),
&WebRequest_send, "web::WebRequest::send"_spr, tulip::hook::TulipConvention::Thiscall
).unwrap();//WHAT_THE_FUCK__.value();
).unwrap();
log::debug("hook: {}", MY_WebRequest_send_HOOK->getRuntimeInfo().dump());
}
}
Expand Down

0 comments on commit cfe66b9

Please sign in to comment.