Skip to content

Commit 3b2b5be

Browse files
committed
Disable launcher security features for non-release builds
1 parent adbe2cf commit 3b2b5be

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Client/launch/Main.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,14 +681,15 @@ namespace Security
681681
return nullptr;
682682
}
683683

684+
#if !defined(MTA_DEBUG) && MTASA_VERSION_TYPE >= VERSION_TYPE_UNTESTED
684685
if (!VerifyFileSignature(strDllPath))
685686
{
686687
SString strError = "SecureLoadLibrary: Invalid or missing digital signature";
687688
AddReportLog(SecurityConstants::REPORT_CODE_INVALID_SIGNATURE, strError);
688-
#ifndef MTA_DEBUG
689+
689690
return nullptr;
690-
#endif
691691
}
692+
#endif
692693

693694
HMODULE hModule = nullptr;
694695
bool bHasLock = false;
@@ -826,8 +827,8 @@ int WINAPI WinMain(HINSTANCE hInstance, [[maybe_unused]] HINSTANCE hPrevInstance
826827
return 1;
827828
}
828829

829-
// Anti-debugging check (only in release builds)
830-
#ifndef MTA_DEBUG
830+
#if !defined(MTA_DEBUG) && MTASA_VERSION_TYPE >= VERSION_TYPE_UNTESTED
831+
// Anti-debugging check (only in release builds)
831832
if (Security::IsDebuggerPresent())
832833
{
833834
Security::CleanupSecurity();

0 commit comments

Comments
 (0)