engine: server: allow server unloading for Win32 targets until we figure out the issues with MetaMod

This commit is contained in:
Alibek Omarov 2023-10-28 11:14:12 +03:00
parent fe407fbe00
commit f07eea5073
2 changed files with 13 additions and 0 deletions

View File

@ -5148,7 +5148,13 @@ qboolean SV_LoadProgs( const char *name )
edict_t *e;
if( svgame.hInstance )
{
#if XASH_WIN32
SV_UnloadProgs();
#else // XASH_WIN32
return true;
#endif // XASH_WIN32
}
// fill it in
svgame.pmove = &gpMove;

View File

@ -1090,6 +1090,10 @@ void SV_Shutdown( const char *finalmsg )
// drop the client if want to load a new map
if( CL_IsPlaybackDemo( ))
CL_Drop();
#if XASH_WIN32
SV_UnloadProgs();
#endif // XASH_WIN32
return;
}
@ -1107,6 +1111,9 @@ void SV_Shutdown( const char *finalmsg )
NET_Config( false, false );
SV_DeactivateServer();
#if XASH_WIN32
SV_UnloadProgs();
#endif // XASH_WIN32
CL_Drop();
// free current level