home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo off
- if "%1"=="" %0 .
- if not "%2"=="" goto getgoing
- if exist fc_11a.zip goto getgoing
- if exist %0\..\fc_11a.zip %0 %1 %0\..\
- if exist %0x\..\fc_11a.zip %0 %1 %0x\..\
- if exist x%0\..\fc_11a.zip %0 %1 x%0\..\
- :getgoing
- if "%3"=="letsgo" goto startcopying
- echo This utility patches Flying corps to version 1.1
- echo ================================================
- echo.
- echo This version should patch all languages correctly.
- echo However, a few pieces of new text have not yet been translated.
- echo.
- echo Running utility from directory:
- cd
- if "%2"=="" echo Looking for source update files in current directory
- if not "%2"=="" echo Looking for source update files in %2
-
- if "%1"=="." echo Looking for target installed version in current directory
- if not "%1"=="." echo Looking for target installed version in %1
-
- if exist %2fc_11a.zip goto gotsource
- echo Could not find update files in source directory.
- echo Please change directory to the correct place and try again.
- goto stop
- :gotsource
- if exist %1\roots.dir goto gotrowan
- echo Could not find any Rowan product in the target directory
- echo You must perform a MEDIUM or LARGE install before using this patch.
- goto stop
- :gotrowan
- if exist %1\fly.exe goto gotfly
- echo Could not find Flying Corps installed in the target directory
- echo You must perform a MEDIUM or LARGE install before using this patch.
- goto stop
- :gotfly
- if not exist %1\landscap\dir.dir goto notcd
- echo Target directory looks like the CD
- echo You must perform a MEDIUM or LARGE install before using this patch.
- goto stop
- :notcd
- if exist %1\shpbin\dir.dir goto gotmedium
- echo Target directory is a SMALL install.
- echo You must perform a MEDIUM or LARGE install before using this patch.
- goto stop
- :gotmedium
- if exist %1\savegame\dir.dir del %1\savegame\dir.dir
- if not exist %1\savegame\*.* goto notsave
- echo.
- echo You have savegame and configuration files.
- echo These files will not work with the patched version.
- echo Your SAVEGAME files will be DELETED
- :notsave
-
- echo.
- if "%2"=="" echo Copying source update files from current directory
- if not "%2"=="" echo Copying source update files from location %2
-
- if "%1"=="." echo Copying to target installed version in current directory
- if not "%1"=="." echo Copying to target installed version in location %1
-
- echo Press Control and C to abort this patch. No changes have been made yet.
- pause
-
- if exist %2fc_11b.zip goto singledisk
- if exist %1\fc_up_11.bat del %1\fc_up_11.bat
- copy %0.bat %1\fc_up_11.bat>NUL
- if not exist %1\fc_up_11.bat copy %0 %1\fc_up_11.bat>NUL
- %1\fc_up_11.bat %1 %2 letsgo
- :singledisk
-
- :startcopying
- if exist %1\savegame\*.* echo ABOUT TO DELETE THE SAVEGAME FILES:
- if exist %1\savegame\*.* del %1\savegame\*.*
-
- %2PKUNZIP %2fc_11a.zip -d -o %1\
-
- :diskloop2
- if exist %2fc_11b.zip goto gotdisk2
- echo Please insert disk 2
- pause
- if exist %2fc_11b.zip goto gotdisk2
- echo This directory contains the wrong files:
- dir/w
- echo This directory contains the wrong files!
- goto diskloop2
- :gotdisk2
-
- %2PKUNZIP %2fc_11b.zip -d -o %1\
-
- :diskloop3
- if exist %2fc_11c.zip goto gotdisk3
- echo Please insert disk 3
- pause
- if exist %2fc_11c.zip goto gotdisk3
- echo This directory contains the wrong files:
- dir/w
- echo This directory contains the wrong files!
- goto diskloop3
- :gotdisk3
-
- %2PKUNZIP %2fc_11c.zip -d -o %1\
-
- cd %1
- echo Congratulations! The patch is installed.
- if not "%1"=="." echo Change to the correct drive and run Flying Corps as normal.
- echo See the file README.TXT for more information.
- pause
- if exist %2\fc_11b.zip goto singledisk2
- %2\delparam %1\fc_up_11.bat
- :singledisk2
- :stop
-