diff Build/init_win.bat @ 2424:255168c31655

* Added win 8.1 support to builds * Removed strict requirement so that display/os should support 16 bit resolutions (even if they aren't really used)
author a.parshin
date Wed, 23 Jul 2014 12:58:30 +0300
parents 68f2d9d3a1d9
children 3a36de426f5f
line wrap: on
line diff
--- a/Build/init_win.bat	Tue Jul 22 23:07:24 2014 +0200
+++ b/Build/init_win.bat	Wed Jul 23 12:58:30 2014 +0300
@@ -1,5 +1,5 @@
 @echo off
-set _mm7_install_dir=C:\Program Files\Buka\MMCollection\MM_VII
+set _mm7_install_dir=D:\g\mm collection\MM_VII
 
 
 
@@ -20,13 +20,27 @@
 ver | findstr /i "6\.1\." > nul
 IF %ERRORLEVEL% EQU 0 goto win_7
 
+ver | findstr /i "6\.2\." > nul
+IF %ERRORLEVEL% EQU 0 goto win_8
+
+ver | findstr /i "6\.3\." > nul
+IF %ERRORLEVEL% EQU 0 goto win_8_1
+
 echo Machine OS cannot be determined.
 goto end
 
+:win_8_1
+echo Win 8.1
+goto win7_init
+
+:win_8
+echo Win 8
+goto end
+
 :win_7
 echo Win 7
+:win7_init
 reg add HKCU\Environment /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
-
 reg query HKCU\Environment /v "WoMM_MM7_INSTALL_DIR"
 goto end
 
@@ -37,8 +51,6 @@
 :win_xp
 echo Win XP
 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
-
-
 reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "WoMM_MM7_INSTALL_DIR"
 goto end