[core] Fix name check (#423)
This commit is contained in:
parent
69e5feffce
commit
63065646fe
|
|
@ -100,7 +100,7 @@ namespace lspd {
|
|||
.moduleInfo = RiruModuleInfo{
|
||||
.supportHide = true,
|
||||
.version = RIRU_MODULE_VERSION,
|
||||
.versionName = STRINGIFY(RIRU_MODULE_VERSION_NAME),
|
||||
.versionName = RIRU_MODULE_VERSION_NAME,
|
||||
.onModuleLoaded = lspd::onModuleLoaded,
|
||||
.forkAndSpecializePre = lspd::nativeForkAndSpecializePre,
|
||||
.forkAndSpecializePost = lspd::nativeForkAndSpecializePost,
|
||||
|
|
@ -116,7 +116,7 @@ __attribute__((noinline)) RIRU_EXPORT RiruVersionedModuleInfo *init(Riru *riru)
|
|||
LOGD("using riru %d", riru->riruApiVersion);
|
||||
LOGD("module path: %s", riru->magiskModulePath);
|
||||
lspd::magiskPath = riru->magiskModulePath;
|
||||
if (lspd::magiskPath.find(STRINGIFY(MODULE_NAME)) == std::string::npos) {
|
||||
if (lspd::magiskPath.find(MODULE_NAME) == std::string::npos) {
|
||||
LOGE("who am i");
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue