From 1ccbb99db2de6341097163159a0c317af6bbeb30 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 10 Sep 2018 14:15:32 +0000 Subject: [PATCH] trying to fix LANG 4 git-svn-id: svn://kolibrios.org@7341 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/kosilka/Tupfile.lua | 4 ++-- programs/games/kosilka/kosilka.cpp | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/programs/games/kosilka/Tupfile.lua b/programs/games/kosilka/Tupfile.lua index d0737fc2c7..1af8630633 100644 --- a/programs/games/kosilka/Tupfile.lua +++ b/programs/games/kosilka/Tupfile.lua @@ -2,8 +2,8 @@ if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_MSVC") ~= "" then return HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") tup.include(HELPERDIR .. "/use_msvc.lua") if tup.getconfig("LANG") == "ru" -then CFLAGS = CFLAGS .. "-DLANG_RUS" -else CFLAGS = CFLAGS .. "-DLANG_ENG" +then CFLAGS = CFLAGS .. "/DLANG_RUS" +else CFLAGS = CFLAGS .. "/DLANG_ENG" end compile_msvc{"kosilka.cpp", "KosFile.cpp", "kosSyst.cpp", "mcsmemm.cpp"} link_msvc("kosilka") diff --git a/programs/games/kosilka/kosilka.cpp b/programs/games/kosilka/kosilka.cpp index be2594c50f..5038f06e8c 100644 --- a/programs/games/kosilka/kosilka.cpp +++ b/programs/games/kosilka/kosilka.cpp @@ -28,7 +28,13 @@ int read_result=0; bool skin_available=false; bool w_redraw=true; -#ifdef LANG_RUS +#define RUS 1 +#define ENG 2 +#ifndef LANG +#define LANG RUS +#endif + +#if LANG == RUS const char windowTitle[] = "Косилка для Колибри"; const char version[] = "Версия 1.16"; const char win[] = "Вы выиграли!";