mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-11 07:01:43 +00:00
I didn't intend to commit this. But now I have it needs to still work in non-windows.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1198 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7900f2b598
commit
65f5f857dc
1 changed files with 4 additions and 0 deletions
|
@ -365,6 +365,7 @@ void InitValidation(void)
|
||||||
Cvar_Register(&allow_f_modified, "Authentication");
|
Cvar_Register(&allow_f_modified, "Authentication");
|
||||||
Cvar_Register(&allow_f_skins, "Authentication");
|
Cvar_Register(&allow_f_skins, "Authentication");
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
secmodule = LoadLibrary("fteqw-security.dll");
|
secmodule = LoadLibrary("fteqw-security.dll");
|
||||||
if (secmodule)
|
if (secmodule)
|
||||||
{
|
{
|
||||||
|
@ -375,6 +376,7 @@ void InitValidation(void)
|
||||||
Security_Supported_Binaries = (void*)GetProcAddress(secmodule, "Security_Supported_Binaries");
|
Security_Supported_Binaries = (void*)GetProcAddress(secmodule, "Security_Supported_Binaries");
|
||||||
Security_Shutdown = (void*)GetProcAddress(secmodule, "Security_Shutdown");
|
Security_Shutdown = (void*)GetProcAddress(secmodule, "Security_Shutdown");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (Security_Init)
|
if (Security_Init)
|
||||||
{
|
{
|
||||||
|
@ -402,7 +404,9 @@ void InitValidation(void)
|
||||||
Security_IsModelModified = NULL;
|
Security_IsModelModified = NULL;
|
||||||
Security_Supported_Binaries = NULL;
|
Security_Supported_Binaries = NULL;
|
||||||
Security_Shutdown = NULL;
|
Security_Shutdown = NULL;
|
||||||
|
#ifdef _WIN32
|
||||||
FreeLibrary(secmodule);
|
FreeLibrary(secmodule);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue