From 5d38105bff9dd299ad0c38ca4b441b7804c567f2 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 30 May 2007 14:24:40 +0000 Subject: [PATCH] desktop supports command line parameter git-svn-id: svn://kolibrios.org@528 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/desktop/trunk/desktop.asm | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/programs/system/desktop/trunk/desktop.asm b/programs/system/desktop/trunk/desktop.asm index 20a0c69de..634d4cac4 100644 --- a/programs/system/desktop/trunk/desktop.asm +++ b/programs/system/desktop/trunk/desktop.asm @@ -16,10 +16,10 @@ dd I_END ; file size dd 28000h ; memory dd 10000h ; stack pointer - dd 0,0 ; parameters, reserved + dd param,0 ; parameters, reserved include 'lang.inc' - include '..\..\macros.inc' + include '..\..\..\macros.inc' include 'kglobals.inc' include 'unpacker.inc' ;****************************************************************************** @@ -67,18 +67,26 @@ ends START: ; start of execution - mov eax,48 ; get current colors mov ebx,3 mov ecx,color_table mov edx,4*10 mcall - cld + mov esi, param + cmp byte [esi], 0 + jnz has_param + mov esi,default_skn mov edi,fname mov ecx,default_skn.size rep movsb + jmp @f +has_param: + mov ecx, 256/4 + mov edi, fname + rep movsd +@@: call load_skin_file ; mov esi, default_dtp @@ -1063,6 +1071,9 @@ end virtual skin_info: .fname rb 256+1 +param rb 257 + +align 4 app_colours: w_frame dd ?