From 5216d87d96565679fdd37faddcf1ef25d210a12f Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sat, 20 Jul 2013 07:44:02 +0000 Subject: [PATCH] zSea - support for extended command line git-svn-id: svn://kolibrios.org@3829 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/zsea/buildall.bat | 2 +- programs/media/zsea/dat_area.inc | 2 +- programs/media/zsea/zSea.asm | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/programs/media/zsea/buildall.bat b/programs/media/zsea/buildall.bat index 9feaef1805..c35c148cb0 100644 --- a/programs/media/zsea/buildall.bat +++ b/programs/media/zsea/buildall.bat @@ -29,7 +29,7 @@ if not exist bin mkdir zSea_bin\plugins @kpack zSea_bin\plugins\scaling.obj @copy zSea.ini zSea_bin\zSea.ini -@copy Docs\zSea_keys.txt zSea_bin\zSea_keys.txt +@copy Docs\zSea_keys_eng.txt zSea_bin\zSea_keys.txt @copy buttons.png zSea_bin\buttons\buttons.png diff --git a/programs/media/zsea/dat_area.inc b/programs/media/zsea/dat_area.inc index 254b00cd18..255bbf89a4 100644 --- a/programs/media/zsea/dat_area.inc +++ b/programs/media/zsea/dat_area.inc @@ -56,7 +56,7 @@ file_name: rb 1024 ;---------------------- temp_area: - rb 4096 + rb 64*1024 ; new max cmdline 64 Kb ;---------------------- procinfo: process_info: diff --git a/programs/media/zsea/zSea.asm b/programs/media/zsea/zSea.asm index b232b81ac5..cef902b797 100644 --- a/programs/media/zsea/zSea.asm +++ b/programs/media/zsea/zSea.asm @@ -35,7 +35,7 @@ dd IM_END ; size of image dd I_END ; memory for app dd stacktop ; esp - dd temp_area ; I_Param + dd ext_dest_cmdline ; I_Param dd path ; APPLICATION PACH include 'lang.inc' @@ -50,7 +50,10 @@ include '../../proc32.inc' include '../../develop/libraries/box_lib/load_lib.mac' @use_library ;use load lib macros ;****************************************************************************** - +ext_dest_cmdline: + dd 0xffffffff + dd temp_area +;------------------------------------------------------------------------------ START: ; start of execution mcall 68, 11 mcall 66, 1,1 @@ -144,7 +147,7 @@ START: ; start of execution mov edi,string ; clear string - mov ecx,256/4 ; length of a string + mov ecx,4096/4 ;256/4 ; length of a string xor eax,eax ; symbol <0> rep stosd @@ -165,7 +168,7 @@ START: ; start of execution add edi,4 .continue: mov esi,edi - mov ecx,257 ; strlen + mov ecx,4095 ;257 ; strlen repne scasb lea ecx, [edi-temp_area]