mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-23 17:50:46 +00:00
Use Com_Error instead of Sys_Error
This commit is contained in:
parent
42da811355
commit
6cafb22a9c
1 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ VID_LoadRefresh ( char *name )
|
||||||
( ( IN_BackendMouseButtons_fp = dlsym( reflib_library, "IN_BackendMouseButtons" ) ) == NULL ) ||
|
( ( IN_BackendMouseButtons_fp = dlsym( reflib_library, "IN_BackendMouseButtons" ) ) == NULL ) ||
|
||||||
( ( IN_BackendMove_fp = dlsym( reflib_library, "IN_BackendMove" ) ) == NULL ) )
|
( ( IN_BackendMove_fp = dlsym( reflib_library, "IN_BackendMove" ) ) == NULL ) )
|
||||||
{
|
{
|
||||||
Sys_Error( "No input backend init functions in REF.\n" );
|
Com_Error( ERR_FATAL, "No input backend init functions in REF.\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( IN_BackendInit_fp )
|
if ( IN_BackendInit_fp )
|
||||||
|
@ -321,7 +321,7 @@ VID_LoadRefresh ( char *name )
|
||||||
( ( IN_Update_fp = dlsym( reflib_library, "IN_Update" ) ) == NULL ) ||
|
( ( IN_Update_fp = dlsym( reflib_library, "IN_Update" ) ) == NULL ) ||
|
||||||
( ( IN_Close_fp = dlsym( reflib_library, "IN_Close" ) ) == NULL ) )
|
( ( IN_Close_fp = dlsym( reflib_library, "IN_Close" ) ) == NULL ) )
|
||||||
{
|
{
|
||||||
Sys_Error( "No keyboard input functions in REF.\n" );
|
Com_Error( ERR_FATAL, "No keyboard input functions in REF.\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
IN_KeyboardInit_fp( Do_Key_Event );
|
IN_KeyboardInit_fp( Do_Key_Event );
|
||||||
|
|
Loading…
Reference in a new issue