engine: remove unused host.hMutex and host.hInst
This commit is contained in:
parent
cf26c87872
commit
a1dceacc8f
4 changed files with 2 additions and 9 deletions
|
@ -285,9 +285,6 @@ typedef enum bugcomp_e
|
||||||
|
|
||||||
typedef struct host_parm_s
|
typedef struct host_parm_s
|
||||||
{
|
{
|
||||||
HINSTANCE hInst;
|
|
||||||
HANDLE hMutex;
|
|
||||||
|
|
||||||
host_status_t status; // global host state
|
host_status_t status; // global host state
|
||||||
game_status_t game; // game manager
|
game_status_t game; // game manager
|
||||||
uint type; // running at
|
uint type; // running at
|
||||||
|
|
|
@ -325,7 +325,6 @@ void Sys_SetupCrashHandler( void )
|
||||||
{
|
{
|
||||||
SetErrorMode( SEM_FAILCRITICALERRORS ); // no abort/retry/fail errors
|
SetErrorMode( SEM_FAILCRITICALERRORS ); // no abort/retry/fail errors
|
||||||
oldFilter = SetUnhandledExceptionFilter( Sys_Crash );
|
oldFilter = SetUnhandledExceptionFilter( Sys_Crash );
|
||||||
host.hInst = GetModuleHandle( NULL );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sys_RestoreCrashHandler( void )
|
void Sys_RestoreCrashHandler( void )
|
||||||
|
|
|
@ -654,6 +654,7 @@ static void VID_SetWindowIcon( SDL_Window *hWnd )
|
||||||
char iconpath[MAX_STRING];
|
char iconpath[MAX_STRING];
|
||||||
#if XASH_WIN32 // ICO support only for Win32
|
#if XASH_WIN32 // ICO support only for Win32
|
||||||
const char *localIcoPath;
|
const char *localIcoPath;
|
||||||
|
HINSTANCE hInst = GetModuleHandle( NULL );
|
||||||
|
|
||||||
if(( localIcoPath = FS_GetDiskPath( GI->iconpath, true )))
|
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
|
#if XASH_WIN32 // ICO support only for Win32
|
||||||
WIN_SetWindowIcon( LoadIcon( host.hInst, MAKEINTRESOURCE( 101 )));
|
WIN_SetWindowIcon( LoadIcon( hInst, MAKEINTRESOURCE( 101 )));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif // SDL_VERSION_ATLEAST( 2, 0, 0 )
|
#endif // SDL_VERSION_ATLEAST( 2, 0, 0 )
|
||||||
|
|
|
@ -608,10 +608,6 @@ void Wcon_DestroyConsole( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
|
|
||||||
// place it here in case Sys_Crash working properly
|
|
||||||
if( host.hMutex )
|
|
||||||
CloseHandle( host.hMutex );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue