Skip to content

Commit 527347b

Browse files
committed
Fixed plugin debug log not working with Lilu disabled
1 parent 2b88157 commit 527347b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Lilu Changelog
55
- Removed `kern_atomic.hpp` due to MacKernelSDK implementation
66
- Acidanthera MacKernelSDK is now required for all plugins
77
- Fixed Lilu loading on macOS 10.6 (not all APIs will be functional)
8+
- Fixed plugin debug log not working with Lilu disabled
89

910
#### v1.4.7
1011
- Added more platform headers for plugin compilation

Lilu/Library/plugin_start.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ EXPORT extern "C" kern_return_t ADDPR(kern_start)(kmod_info_t *, void *) {
8888
lilu.releaseAccess();
8989
} else {
9090
SYSLOG("init", "failed to call parent %d", error);
91+
92+
for (size_t i = 0; i < ADDPR(config).debugArgNum; i++) {
93+
if (checkKernelArgument(ADDPR(config).debugArg[i])) {
94+
ADDPR(debugEnabled) = true;
95+
break;
96+
}
97+
}
98+
99+
if (checkKernelArgument("-liludbgall"))
100+
ADDPR(debugEnabled) = true;
91101
}
92102

93103
// Report success but actually do not start and let I/O Kit unload us.

0 commit comments

Comments
 (0)