From 3e6613c6f909ee538b610acd070dd4b71d1d7487 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 28 Dec 2014 21:06:18 +0000 Subject: [PATCH] Bomber - build.bat files and support for lang.inc git-svn-id: svn://kolibrios.org@5282 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/bomber/bomber.asm | 10 ++++++---- programs/games/bomber/build_en.bat | 12 ++++++++++++ programs/games/bomber/build_ru.bat | 12 ++++++++++++ 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 programs/games/bomber/build_en.bat create mode 100644 programs/games/bomber/build_ru.bat diff --git a/programs/games/bomber/bomber.asm b/programs/games/bomber/bomber.asm index ca6908b4d4..715d012077 100644 --- a/programs/games/bomber/bomber.asm +++ b/programs/games/bomber/bomber.asm @@ -52,7 +52,7 @@ use32 ; ;Область кода ;----------------- include ------------------------------------- - +include 'lang.inc' include 'ssmix.inc' ;--------------------------------------------------------------------------- @@ -2343,9 +2343,11 @@ file_info: ; db 0 _fi_pfilename dd ? - -;include 'ruslang.inc' -include 'englang.inc' +if lang eq ru + include 'ruslang.inc' +else + include 'englang.inc' +end if bmp_plane: file "plane.bmp":54 diff --git a/programs/games/bomber/build_en.bat b/programs/games/bomber/build_en.bat new file mode 100644 index 0000000000..519f17b421 --- /dev/null +++ b/programs/games/bomber/build_en.bat @@ -0,0 +1,12 @@ +if not exist bin mkdir bomber_eng_bin +@erase lang.inc +@echo lang fix en >lang.inc +@fasm -m 16384 bomber.asm bomber_eng_bin\bomber +@erase lang.inc +@kpack bomber_eng_bin\bomber +@fasm -m 16384 sounds\bomberdata.asm bomber_eng_bin\bomberdata.bin +@copy ackack.bmp bomber_eng_bin\ackack.bmp +@copy bomb.bmp bomber_eng_bin\bomb.bmp +@copy plane.bmp bomber_eng_bin\plane.bmp +@copy tile.bmp bomber_eng_bin\tile.bmp +@pause \ No newline at end of file diff --git a/programs/games/bomber/build_ru.bat b/programs/games/bomber/build_ru.bat new file mode 100644 index 0000000000..cf188674ae --- /dev/null +++ b/programs/games/bomber/build_ru.bat @@ -0,0 +1,12 @@ +if not exist bin mkdir bomber_rus_bin +@erase lang.inc +@echo lang fix ru >lang.inc +@fasm -m 16384 bomber.asm bomber_rus_bin\bomber +@erase lang.inc +@kpack bomber_rus_bin\bomber +@fasm -m 16384 sounds\bomberdata.asm bomber_rus_bin\bomberdata.bin +@copy ackack.bmp bomber_rus_bin\ackack.bmp +@copy bomb.bmp bomber_rus_bin\bomb.bmp +@copy plane.bmp bomber_rus_bin\plane.bmp +@copy tile.bmp bomber_rus_bin\tile.bmp +@pause \ No newline at end of file