mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Don't open .pk3 files as OpenAL drivers.
This commit is contained in:
parent
376267d534
commit
f61fe5f6a0
1 changed files with 7 additions and 1 deletions
|
@ -2512,11 +2512,17 @@ qboolean S_AL_Init( soundInterface_t *si )
|
|||
s_alRolloff = Cvar_Get( "s_alRolloff", "2", CVAR_CHEAT);
|
||||
s_alGraceDistance = Cvar_Get("s_alGraceDistance", "512", CVAR_CHEAT);
|
||||
|
||||
s_alDriver = Cvar_Get( "s_alDriver", ALDRIVER_DEFAULT, CVAR_ARCHIVE | CVAR_LATCH );
|
||||
s_alDriver = Cvar_Get( "s_alDriver", ALDRIVER_DEFAULT, CVAR_ARCHIVE | CVAR_LATCH | CVAR_PROTECTED );
|
||||
|
||||
s_alInputDevice = Cvar_Get( "s_alInputDevice", "", CVAR_ARCHIVE | CVAR_LATCH );
|
||||
s_alDevice = Cvar_Get("s_alDevice", "", CVAR_ARCHIVE | CVAR_LATCH);
|
||||
|
||||
if ( COM_CompareExtension( s_alDriver->string, ".pk3" ) )
|
||||
{
|
||||
Com_Printf( "Rejecting DLL named \"%s\"", s_alDriver->string );
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
// Load QAL
|
||||
if( !QAL_Init( s_alDriver->string ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue