This is an automated email from the git hooks/post-receive script. smcv pushed a commit to tag 1.51 in repository iortcw.
commit b248763e4878ef12d5835ece6600be8334f67da1 Author: MAN-AT-ARMS <m4n4t4...@gmail.com> Date: Tue Mar 14 03:25:17 2017 -0400 All: Don't open .pk3 files as OpenAL drivers --- MP/code/client/snd_openal.c | 8 +++++++- SP/code/client/snd_openal.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/MP/code/client/snd_openal.c b/MP/code/client/snd_openal.c index cbbb8ea..bdfcc7d 100644 --- a/MP/code/client/snd_openal.c +++ b/MP/code/client/snd_openal.c @@ -2618,11 +2618,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 ) ) { diff --git a/SP/code/client/snd_openal.c b/SP/code/client/snd_openal.c index 8f2dfdb..c0a70a0 100644 --- a/SP/code/client/snd_openal.c +++ b/SP/code/client/snd_openal.c @@ -2675,11 +2675,17 @@ qboolean S_AL_Init( soundInterface_t *si ) s_alGraceDistance = Cvar_Get("s_alGraceDistance", "512", CVAR_ARCHIVE); s_alTalkAnims = Cvar_Get("s_alTalkAnims", "160", CVAR_ARCHIVE); - 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 ) ) { -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits