]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
also detect being part of a warsow install
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 10 Apr 2009 19:44:53 +0000 (19:44 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 10 Apr 2009 19:44:53 +0000 (19:44 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@317 61c419a2-8eb2-4b30-bcec-8cead039b335

radiant/environment.cpp

index 58a405dd3485f12a27d26af3d51af217f0bd1a50..220a884f8d0a7e74c079bbbfbaaaebc2bc5a2021 100644 (file)
@@ -138,6 +138,10 @@ void gamedetect()
          if(gamedetect_check_game("q2w.game", "default/quake2world.version", NULL, buf, p - buf))
            return;
 
+         // try to detect Warsow installs
+         if(gamedetect_check_game("warsow.game", "basewsw/dedicated_autoexec.cfg", NULL, buf, p - buf))
+           return;
+
          // we found nothing
          // go backwards
          --p;