Mercurial > mm7
view Build/init_win.bat @ 2541:a902abdfc7f2
1. Renamed class Game to class Engine.
2. Separated game logic as state of FSM from game logic as engine.
3. Found out that many UI screen initializers were optimized away, intially
they all returned newly created window as separate object like it is done
in CharacterUI_Initialize.
author | a.parshin |
---|---|
date | Sun, 10 May 2015 01:29:11 +0200 |
parents | 5c03054c72b8 |
children |
line wrap: on
line source
@echo off set _mm7_install_dir=I:\_w\mm7install REM Check Windows Version ver | findstr /i "5\.0\." > nul IF %ERRORLEVEL% EQU 0 goto win_2000 ver | findstr /i "5\.1\." > nul IF %ERRORLEVEL% EQU 0 goto win_xp ver | findstr /i "5\.2\." > nul IF %ERRORLEVEL% EQU 0 goto win_2003 ver | findstr /i "6\.0\." > nul IF %ERRORLEVEL% EQU 0 goto win_vista 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 :win_2000 echo Win 2000 goto end :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 :win_vista echo Win Vista goto end :win_2003 echo Win 2003 goto end :check_vars goto end :end pause