-
Notifications
You must be signed in to change notification settings - Fork 151
feat: introduce local patcher dll to cmake #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| #ifndef CSLOL_API_H | ||
| #define CSLOL_API_H | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif // __cplusplus | ||
|
|
||
| #include <stdbool.h> | ||
| #include <uchar.h> | ||
|
|
||
| #ifdef CSLOL_IMPL | ||
| # ifdef _MSC_VER | ||
| # define CSLOL_API __declspec(dllexport) | ||
| # else | ||
| # define CSLOL_API | ||
| # endif | ||
| #else | ||
| # ifdef _MSC_VER | ||
| # define CSLOL_API __declspec(dllimport) | ||
| # else | ||
| # define CSLOL_API extern | ||
| # endif | ||
| #endif | ||
|
|
||
| typedef enum cslol_hook_flags { | ||
| CSLOL_HOOK_DISALBE_NONE = 0u, | ||
| CSLOL_HOOK_DISABLE_VERIFY = 1u, | ||
| CSLOL_HOOK_DISABLE_FILE = 2u, | ||
| CSLOL_HOOK_DISABLE_ALL = (unsigned)(-1), | ||
| } cslol_hook_flags; | ||
|
|
||
| typedef enum cslol_log_level { | ||
| CSLOL_LOG_ERROR = 0, | ||
| CSLOL_LOG_INFO = 0x10, | ||
| CSLOL_LOG_DEBUG = 0x20, | ||
| CSLOL_LOG_ALL = 0x1000, | ||
| } cslol_log_level; | ||
|
|
||
| // Msg proc used for injection. | ||
| CSLOL_API intptr_t cslol_msg_hookproc(int code, uintptr_t wParam, intptr_t lParam); | ||
|
|
||
| // Initialize IPC, returns error if any. | ||
| CSLOL_API const char* cslol_init(); | ||
|
|
||
| // Sets prefix folder, returns error if any. | ||
| CSLOL_API const char* cslol_set_config(const char16_t* prefix); | ||
|
|
||
| // Sets flags, return error if any. | ||
| CSLOL_API const char* cslol_set_flags(cslol_hook_flags flags); | ||
|
|
||
| // Set log level, return error if any. | ||
| CSLOL_API const char* cslol_set_log_level(cslol_log_level level); | ||
|
|
||
| // Pull log message if any. | ||
| CSLOL_API const char* cslol_log_pull(); | ||
|
|
||
| // Find thread id of running lol instance. | ||
| CSLOL_API unsigned cslol_find(); | ||
|
|
||
| // Hook, return error if any. | ||
| CSLOL_API const char* cslol_hook(unsigned tid, unsigned post_iters, unsigned event_iters); | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif // __cplusplus | ||
|
|
||
| #endif // CSLOL_API_H |
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change to the miniz library setup appears unrelated to introducing the local patcher dll. The modification from using add_subdirectory to manually creating the library should either be explained in the PR description or moved to a separate commit/PR for better change tracking and easier review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed by bumping the commit at
cslol-manager/cslol-tools/dep/CMakeLists.txt
Line 74 in e89de9b
Newer versions have cmake version bumped, see https://github.com/richgel999/miniz/commits/master/
Should also fix:
While at it. All of it in a new PR problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot