2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-17 15:39:05 +01:00

engine: remove unused host.hMutex and host.hInst

This commit is contained in:
Alibek Omarov 2024-06-12 07:37:40 +03:00
parent cf26c87872
commit a1dceacc8f
4 changed files with 2 additions and 9 deletions

View File

@ -285,9 +285,6 @@ typedef enum bugcomp_e
typedef struct host_parm_s
{
HINSTANCE hInst;
HANDLE hMutex;
host_status_t status; // global host state
game_status_t game; // game manager
uint type; // running at

View File

@ -325,7 +325,6 @@ void Sys_SetupCrashHandler( void )
{
SetErrorMode( SEM_FAILCRITICALERRORS ); // no abort/retry/fail errors
oldFilter = SetUnhandledExceptionFilter( Sys_Crash );
host.hInst = GetModuleHandle( NULL );
}
void Sys_RestoreCrashHandler( void )

View File

@ -654,6 +654,7 @@ static void VID_SetWindowIcon( SDL_Window *hWnd )
char iconpath[MAX_STRING];
#if XASH_WIN32 // ICO support only for Win32
const char *localIcoPath;
HINSTANCE hInst = GetModuleHandle( NULL );
if(( localIcoPath = FS_GetDiskPath( GI->iconpath, true )))
{
@ -685,7 +686,7 @@ static void VID_SetWindowIcon( SDL_Window *hWnd )
}
#if XASH_WIN32 // ICO support only for Win32
WIN_SetWindowIcon( LoadIcon( host.hInst, MAKEINTRESOURCE( 101 )));
WIN_SetWindowIcon( LoadIcon( hInst, MAKEINTRESOURCE( 101 )));
#endif
}
#endif // SDL_VERSION_ATLEAST( 2, 0, 0 )

View File

@ -608,10 +608,6 @@ void Wcon_DestroyConsole( void )
}
FreeConsole();
// place it here in case Sys_Crash working properly
if( host.hMutex )
CloseHandle( host.hMutex );
}
/*