Skip to content
Browse files

bat cleanups

  • Loading branch information...
1 parent f70adf8 commit 8491e61705726c295fe3589a78d1dc4d41aab2af @lsalzman committed Aug 25, 2012
Showing with 24 additions and 2 deletions.
  1. +12 −1 server.bat
  2. +12 −1 tesseract.bat
View
13 server.bat
@@ -1 +1,12 @@
-start bin\tesseract.exe "-q$HOME\My Games\Tesseract" -ktesseract -gserver-log.txt -d %*
+@ECHO OFF
+
+set TESS_BIN=bin
+
+IF /I "%PROCESSOR_ARCHITECTURE%" == "amd64" (
+ set TESS_BIN=bin64
+)
+IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" (
+ set TESS_BIN=bin64
+)
+
+start %TESS_BIN%\tesseract.exe "-q$HOME\My Games\Tesseract" -ktesseract -gserver-log.txt -d %*
View
13 tesseract.bat
@@ -1 +1,12 @@
-start bin\tesseract.exe "-q$HOME\My Games\Tesseract" -ktesseract -ksauerbraten\packages -glog.txt %*
+@ECHO OFF
+
+set TESS_BIN=bin
+
+IF /I "%PROCESSOR_ARCHITECTURE%" == "amd64" (
+ set TESS_BIN=bin64
+)
+IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" (
+ set TESS_BIN=bin64
+)
+
+start %TESS_BIN%\tesseract.exe "-q$HOME\My Games\Tesseract" -ktesseract -ksauerbraten\packages -glog.txt %*

0 comments on commit 8491e61

Please sign in to comment.
Something went wrong with that request. Please try again.