From c708e98e95a0f044de0808d79676dcc6adc34c02 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Tue, 12 Mar 2019 00:35:11 +0000 Subject: [PATCH] setup: cosmetic fix, use macro git-svn-id: svn://kolibrios.org@7602 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/setup/trunk/setup.asm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/system/setup/trunk/setup.asm b/programs/system/setup/trunk/setup.asm index f3d102ddc2..5353cecfaf 100644 --- a/programs/system/setup/trunk/setup.asm +++ b/programs/system/setup/trunk/setup.asm @@ -25,12 +25,12 @@ BootSettings: invoke ini.get_str, sz_ini, sz_system, sz_language, param, 2, 0 mov ax, [param] or ax, 0x2020 ; convert to lowercase - mov ecx,8 + mov ecx,langMarks.size/2 mov edi,langMarks repnz scasw jnz @f neg ecx - add ecx,8 + add ecx,langMarks.size/2 mcall 21,5 @@: @@ -384,7 +384,7 @@ onoff: saveAll: ; system language mov eax,[syslang] - mov ax, [eax*2+langMarks] + mov ax, word[eax*2+langMarks] mov [param],eax invoke ini.set_str, sz_ini, sz_system, sz_language, param, 2 @@ -484,8 +484,7 @@ stringsAmount = 6 align 4 langs: db 'ENGLISH FINNISH GERMAN RUSSIAN FRENCH ESTONIANSPANISH ITALIAN ' -langMarks: -db 'enfiderufretspit' +sz langMarks, 'en','fi','de','ru','fr','et','sp','it' textrus: db 'Язык системы : < > Применить' @@ -533,4 +532,4 @@ fontSize dd ? param: rb 1024 -I_END: \ No newline at end of file +I_END: