also support \ path name separator. So much for "all systems".
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 5 Mar 2009 11:28:15 +0000 (11:28 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 5 Mar 2009 11:28:15 +0000 (11:28 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@211 61c419a2-8eb2-4b30-bcec-8cead039b335

radiant/environment.cpp

index 99c6971..0656f8d 100644 (file)
@@ -127,7 +127,7 @@ void gamedetect()
          // we found nothing
          // go backwards
          --p;
-         while(p != buf && *p != '/')
+         while(p != buf && *p != '/' && *p != '\\')
            --p;
        }
   }