use relative path

git-svn-id: svn://kolibrios.org@7966 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2020-05-22 12:37:42 +00:00
parent 9ab5b699d5
commit 8ac977e2e4

View File

@ -33,8 +33,6 @@ include 'macros.inc' ; decrease code size (optional)
include 'CELLTYPE.INC' ; object identifiers include 'CELLTYPE.INC' ; object identifiers
;include 'debug.inc' ;include 'debug.inc'
CUR_DIR equ '/sys/games/' ; change it to appropriate path
SKIN_SIZE = 11520 ; size of skin file (16x240) SKIN_SIZE = 11520 ; size of skin file (16x240)
; field dimensions ; field dimensions
@ -93,7 +91,7 @@ START:
mov [inp_pos],0 mov [inp_pos],0
load_std: load_std:
mov esi,stdlev mov esi,stdlev
mov edi,path_end mov edi,file_name
mov ecx,stdlev_len-stdlev mov ecx,stdlev_len-stdlev
rep movsb rep movsb
mov ecx,10 mov ecx,10
@ -293,7 +291,7 @@ still:
mov esi,fn_input mov esi,fn_input
mov byte[esi+ecx],0 mov byte[esi+ecx],0
inc ecx inc ecx
mov edi,path_end mov edi,file_name
rep movsb rep movsb
jmp reset_fi jmp reset_fi
no_load: no_load:
@ -1115,8 +1113,7 @@ file_info:
dd 0, 0 ; file offset dd 0, 0 ; file offset
dd 0x20000 ; number of bytes to read dd 0x20000 ; number of bytes to read
cnf_level dd strip ; data buffer cnf_level dd strip ; data buffer
file_name db CUR_DIR ; Filename file_name db 'SKIN.'
path_end db 'SKIN.'
file_num db 'RAW',0 file_num db 'RAW',0
rb 256-($-file_name) rb 256-($-file_name)