Disable hide on debug build

This commit is contained in:
LoveSy 2021-03-29 15:13:09 +08:00 committed by Wang Han
parent 084ec536e6
commit 3fb6dc741b
2 changed files with 11 additions and 1 deletions

View File

@ -42,6 +42,16 @@ namespace lspd {
inline constexpr bool is64 = Is64();
inline bool constexpr IsDebug() {
#ifdef NDEBUG
return false;
#else
return true;
#endif
}
inline constexpr bool isDebug = IsDebug();
#if defined(__LP64__)
# define LP_SELECT(lp32, lp64) lp64
#else

View File

@ -98,7 +98,7 @@ namespace lspd {
RiruVersionedModuleInfo module{
.moduleApiVersion = RIRU_MODULE_API_VERSION,
.moduleInfo = RiruModuleInfo{
.supportHide = true,
.supportHide = !isDebug,
.version = RIRU_MODULE_VERSION,
.versionName = RIRU_MODULE_VERSION_NAME,
.onModuleLoaded = lspd::onModuleLoaded,