Skip to content

Commit

Permalink
Merge branch 'acidanthera:master' into yaming-network
Browse files Browse the repository at this point in the history
  • Loading branch information
wy414012 authored Jan 12, 2022
2 parents 953c16e + 48d7bbc commit 1432fe3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Lilu Changelog
==============
#### v1.6.0
- Dropped internal shared patcher instance grabbing API

#### v1.5.9
- Fixed memory corruption when mixing cs_validate_range/page mid/long routes (thx @Goshin)
- Enforced all routes to be slotted after one slotted route
Expand Down
12 changes: 0 additions & 12 deletions Lilu/Headers/kern_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,6 @@ class LiluAPI {
*/
EXPORT Error onPatcherLoad(t_patcherLoaded callback, void *user=nullptr);

#ifdef ACIDANTHERA_PRIVATE
/**
* Obtains kernel patcher shared instance.
*
* WARNING: You can only safely use patcher within kext handling or patcher loading contexts. Using it outside
* is dangerous without extra knowledge.
*
* @return KernelPatcher reference
*/
EXPORT KernelPatcher &getKernelPatcher();
#endif

/**
* Registers custom provided callbacks for later invocation on kernel patcher initialisation
* Enforced version, which panics on registration failure (assuming your code cannot continue otherwise)
Expand Down
6 changes: 0 additions & 6 deletions Lilu/Sources/kern_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Copyright © 2016-2017 vit9696. All rights reserved.
//

#define ACIDANTHERA_PRIVATE

#include <libkern/c++/OSObject.h>

#include <Headers/kern_config.hpp>
Expand Down Expand Up @@ -131,10 +129,6 @@ LiluAPI::Error LiluAPI::onPatcherLoad(t_patcherLoaded callback, void *user) {
return Error::NoError;
}

KernelPatcher &LiluAPI::getKernelPatcher() {
return ADDPR(config).kernelPatcher;
}

LiluAPI::Error LiluAPI::onKextLoad(KernelPatcher::KextInfo *infos, size_t num, t_kextLoaded callback, void *user) {
// Store the callbacks first
if (callback) {
Expand Down

0 comments on commit 1432fe3

Please sign in to comment.