annotate Build/init_win.bat @ 2574:dd36326a9994

More texture refactoring GetLeather -> DrawTextureCustomHeight
author a.parshin
date Mon, 07 Mar 2016 03:48:40 +0200
parents 5c03054c72b8
children
rev   line source
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
1 @echo off
2537
5c03054c72b8 VS 2013 project
a.parshin
parents: 2535
diff changeset
2 set _mm7_install_dir=I:\_w\mm7install
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
3
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
4
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
5
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
6 REM Check Windows Version
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
8 ver | findstr /i "5\.0\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
9 IF %ERRORLEVEL% EQU 0 goto win_2000
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
10
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
11 ver | findstr /i "5\.1\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
12 IF %ERRORLEVEL% EQU 0 goto win_xp
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
13
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
14 ver | findstr /i "5\.2\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
15 IF %ERRORLEVEL% EQU 0 goto win_2003
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
16
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
17 ver | findstr /i "6\.0\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
18 IF %ERRORLEVEL% EQU 0 goto win_vista
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
19
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
20 ver | findstr /i "6\.1\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
21 IF %ERRORLEVEL% EQU 0 goto win_7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
22
2424
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
23 ver | findstr /i "6\.2\." > nul
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
24 IF %ERRORLEVEL% EQU 0 goto win_8
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
25
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
26 ver | findstr /i "6\.3\." > nul
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
27 IF %ERRORLEVEL% EQU 0 goto win_8_1
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
28
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
29 echo Machine OS cannot be determined.
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
30 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
31
2424
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
32 :win_8_1
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
33 echo Win 8.1
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
34 goto win7_init
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
35
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
36 :win_8
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
37 echo Win 8
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
38 goto end
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
39
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
40 :win_7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
41 echo Win 7
2424
255168c31655 * Added win 8.1 support to builds
a.parshin
parents: 1936
diff changeset
42 :win7_init
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
43 reg add HKCU\Environment /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
44 reg query HKCU\Environment /v "WoMM_MM7_INSTALL_DIR"
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
45 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
46
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
47 :win_2000
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
48 echo Win 2000
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
49 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
50
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
51 :win_xp
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
52 echo Win XP
1936
68f2d9d3a1d9 MSVS 2010 project file
Ritor1
parents: 1924
diff changeset
53 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
68f2d9d3a1d9 MSVS 2010 project file
Ritor1
parents: 1924
diff changeset
54 reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "WoMM_MM7_INSTALL_DIR"
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
55 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
56
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
57 :win_vista
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
58 echo Win Vista
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
59 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
60
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
61 :win_2003
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
62 echo Win 2003
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
63 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
64
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
65 :check_vars
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
66 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
67
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
68 :end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
69 pause