Skip to content

Commit

Permalink
Added more hook stability
Browse files Browse the repository at this point in the history
  • Loading branch information
SMJSGaming committed Oct 2, 2024
1 parent c34fab3 commit 78f16db
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# GDIntercept Changelog

## v0.6.5-alpha.6 (2024-09-27) - Race Condition Patch
## v0.6.6-alpha.6 (2024-10-02) - Hook Compatibility Patch

- Added compatibility for hooks that modify the request data

## v0.6.5-alpha.6 (2024-09-30) - Race Condition Patch

- Patched all remaining race conditions (closed source for security reasons)

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)

project(GDIntercept VERSION 0.6.5)
project(GDIntercept VERSION 0.6.6)

file(GLOB_RECURSE SOURCES "src/*.cpp")
add_library(${PROJECT_NAME} SHARED ${SOURCES})
Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "3.7.1",
"version": "v0.6.5-alpha.6",
"geode": "3.8.1",
"version": "v0.6.6-alpha.6",
"id": "smjs.gdintercept",
"name": "GDIntercept",
"api": {
Expand Down
5 changes: 1 addition & 4 deletions proxy/Proxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ namespace proxy {
};


template <typename T>
concept proxy_event = std::is_base_of_v<ProxyEvent, T>;

template<proxy_event T>
template<typename T> requires std::is_base_of_v<ProxyEvent, T>
class ProxyFilter : public geode::EventFilter<T> {
public:
geode::ListenerResult handle(geode::utils::MiniFunction<geode::ListenerResult(T*)> callback, T* event) {
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/ProxyHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ m_finished(false) {
m_info = new HttpInfo(ProxyHandler::paused, isRepeat, m_modRequest, method, url);

ProxyHandler::registerProxy(this);
ProxyHandler::handledIDs.push_back(request->getID());
ProxyHandler::handledIDs.push_back(m_modRequest->getID());

m_modTask = web::WebTask::run([this, url](auto progress, auto cancelled) -> web::WebTask::Result {
web::WebResponse* response = nullptr;
Expand Down

0 comments on commit 78f16db

Please sign in to comment.