From 37ae7f0794a14bc1d8bacafe756ec9de13b9fdf5 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 24 Jan 2020 02:47:33 +0300 Subject: [PATCH] * support Quake3 and Quake in -gamedetect (autodetects by availability of "baseq3/pak0.pk3" and "id1/pak0.pak" in folders prior to radiant's) --- radiant/environment.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radiant/environment.cpp b/radiant/environment.cpp index 29988852..de57bdc7 100644 --- a/radiant/environment.cpp +++ b/radiant/environment.cpp @@ -126,6 +126,12 @@ void gamedetect(){ { // TODO add more games to this + if ( gamedetect_check_game( "q3.game", "baseq3/pak0.pk3", NULL, buf, p - buf ) ) { + return; + } + if ( gamedetect_check_game( "q1.game", "id1/pak0.pak", NULL, buf, p - buf ) ) { + return; + } // try to detect Nexuiz installs #if defined( WIN32 ) if ( gamedetect_check_game( "nexuiz.game", "data/common-spog.pk3", "nexuiz.exe", buf, p - buf ) )