From 24aa6e82487eb91d6a80ec6062fd51ce7d80549c Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 5 Sep 2014 15:06:05 +0000 Subject: [PATCH] pong: use standard language selection git-svn-id: svn://kolibrios.org@5091 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/pong/trunk/build_en.bat | 4 +++- programs/games/pong/trunk/build_ru.bat | 4 +++- programs/games/pong/trunk/lang.inc | 14 -------------- programs/games/pong/trunk/pong.asm | 5 +++++ 4 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 programs/games/pong/trunk/lang.inc diff --git a/programs/games/pong/trunk/build_en.bat b/programs/games/pong/trunk/build_en.bat index 0f0a14e74e..66a37fcb06 100644 --- a/programs/games/pong/trunk/build_en.bat +++ b/programs/games/pong/trunk/build_en.bat @@ -1,3 +1,5 @@ -@copy english.inc lang.inc +@erase lang.inc +@echo lang fix en >lang.inc @fasm pong.asm pong +@erase lang.inc @pause \ No newline at end of file diff --git a/programs/games/pong/trunk/build_ru.bat b/programs/games/pong/trunk/build_ru.bat index 267d5d37cd..8d853d3ee4 100644 --- a/programs/games/pong/trunk/build_ru.bat +++ b/programs/games/pong/trunk/build_ru.bat @@ -1,3 +1,5 @@ -@copy russian.inc lang.inc +@erase lang.inc +@echo lang fix ru >lang.inc @fasm pong.asm pong +@erase lang.inc @pause \ No newline at end of file diff --git a/programs/games/pong/trunk/lang.inc b/programs/games/pong/trunk/lang.inc deleted file mode 100644 index daad037c87..0000000000 --- a/programs/games/pong/trunk/lang.inc +++ /dev/null @@ -1,14 +0,0 @@ -scotext: - db 'SCORE: :' -welcome: - db 'PLAYER1: Q , A PLAYER2:  , ' -b0lab: - db 'NEW GAME' -labelt: - db 'PONG v1.1',0 -w1: - db 'Player 1 wins!' -w2: - db 'Player 2 wins!' -clsign: - db 'x' diff --git a/programs/games/pong/trunk/pong.asm b/programs/games/pong/trunk/pong.asm index a3970a8b6a..c74518d48c 100644 --- a/programs/games/pong/trunk/pong.asm +++ b/programs/games/pong/trunk/pong.asm @@ -456,6 +456,11 @@ is_up2 dd 0x0 ; | is_dn2 dd 0x0 ; / include "lang.inc" +if lang eq ru +include "russian.inc" +else +include "english.inc" +end if ball: file "ball.raw"