2015-10-15 17:26:59 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; SYSTEM SETTINGS ;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2013-02-03 23:01:05 +01:00
|
|
|
|
format binary as ""
|
2015-10-15 17:26:59 +02:00
|
|
|
|
use32
|
|
|
|
|
org 0
|
|
|
|
|
|
|
|
|
|
db 'MENUET01'
|
|
|
|
|
dd 1
|
|
|
|
|
dd START
|
|
|
|
|
dd IM_END
|
|
|
|
|
dd I_END
|
|
|
|
|
dd stack_area
|
2015-10-21 01:06:48 +02:00
|
|
|
|
dd param
|
2015-10-15 17:26:59 +02:00
|
|
|
|
dd 0
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2015-10-21 01:06:48 +02:00
|
|
|
|
include '../../../proc32.inc'
|
2014-04-12 21:42:03 +02:00
|
|
|
|
include '../../../macros.inc'
|
2015-10-21 01:06:48 +02:00
|
|
|
|
include '../../../dll.inc'
|
2015-10-15 17:26:59 +02:00
|
|
|
|
;---------------------------------------------------------------
|
2015-10-21 01:06:48 +02:00
|
|
|
|
BootSettings:
|
|
|
|
|
; Set system language
|
|
|
|
|
mov word[param],0
|
|
|
|
|
invoke ini.get_str, sz_ini, sz_system, sz_language, param, 2, 0
|
|
|
|
|
mov ax, [param]
|
|
|
|
|
or ax, 0x2020 ; convert to lowercase
|
2015-11-03 00:09:03 +01:00
|
|
|
|
mov ecx,8
|
2015-10-21 01:06:48 +02:00
|
|
|
|
mov edi,langMarks
|
|
|
|
|
repnz scasw
|
|
|
|
|
jnz @f
|
|
|
|
|
neg ecx
|
2015-11-03 00:09:03 +01:00
|
|
|
|
add ecx,8
|
2015-10-21 01:06:48 +02:00
|
|
|
|
mcall 21,5
|
2015-10-15 17:26:59 +02:00
|
|
|
|
@@:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
|
|
|
|
|
; Set font smoothing
|
|
|
|
|
mov dword[param],0
|
|
|
|
|
invoke ini.get_str, sz_ini, sz_system, sz_fontSmooth, param, 4, 0
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov eax,[param]
|
|
|
|
|
or eax,0x20202020
|
|
|
|
|
cmp eax,'off '
|
|
|
|
|
jz @f
|
|
|
|
|
inc ecx
|
|
|
|
|
cmp eax,'on '
|
|
|
|
|
jz @f
|
|
|
|
|
cmp eax,'sbp '
|
|
|
|
|
jnz .skipFont
|
2015-10-15 17:26:59 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
@@:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
mcall 48,10
|
|
|
|
|
.skipFont:
|
|
|
|
|
|
|
|
|
|
; Enable/disable system speaker
|
|
|
|
|
mov dword[param],0
|
|
|
|
|
invoke ini.get_str, sz_ini, sz_system, sz_speaker, param, 4, 0
|
|
|
|
|
mov eax,[param]
|
|
|
|
|
or eax,0x20202020
|
|
|
|
|
cmp eax,'off '
|
|
|
|
|
jz @f
|
|
|
|
|
cmp eax,'on '
|
|
|
|
|
jnz .skipSpeaker
|
|
|
|
|
inc [speaker_mute]
|
|
|
|
|
@@:
|
|
|
|
|
call _speaker_mute
|
|
|
|
|
.skipSpeaker:
|
|
|
|
|
|
2015-11-02 15:48:38 +01:00
|
|
|
|
; Set font size
|
|
|
|
|
invoke ini.get_int, sz_ini, sz_system, sz_fontSize, 9
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
mcall 48,12
|
|
|
|
|
|
2015-10-21 01:06:48 +02:00
|
|
|
|
; Set mouse speed
|
|
|
|
|
invoke ini.get_int, sz_ini, sz_mouse, sz_speed, 1
|
|
|
|
|
mov edx,eax
|
|
|
|
|
mcall 18,19,1
|
|
|
|
|
|
|
|
|
|
; Set mouse delay
|
|
|
|
|
invoke ini.get_int, sz_ini, sz_mouse, sz_delay, 1
|
|
|
|
|
mov edx,eax
|
|
|
|
|
mcall 18,19,3
|
|
|
|
|
|
|
|
|
|
; Enable/disable LBA access for applications
|
|
|
|
|
mov dword[param],0
|
|
|
|
|
invoke ini.get_str, sz_ini, sz_low_level, sz_lba, param, 4, 0
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov eax,[param]
|
|
|
|
|
or eax,0x20202020
|
|
|
|
|
cmp eax,'off '
|
|
|
|
|
jz @f
|
|
|
|
|
cmp eax,'on '
|
|
|
|
|
jnz .skipLBA
|
2015-10-15 17:26:59 +02:00
|
|
|
|
inc ecx
|
2015-10-21 01:06:48 +02:00
|
|
|
|
@@:
|
|
|
|
|
mcall 21,11
|
|
|
|
|
.skipLBA:
|
|
|
|
|
|
|
|
|
|
; Enable/disable PCI access for applications
|
|
|
|
|
mov dword[param],0
|
|
|
|
|
invoke ini.get_str, sz_ini, sz_low_level, sz_pci, param, 4, 0
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov eax,[param]
|
|
|
|
|
or eax,0x20202020
|
|
|
|
|
cmp eax,'off '
|
|
|
|
|
jz @f
|
|
|
|
|
cmp eax,'on '
|
|
|
|
|
jnz close
|
2015-10-15 17:26:59 +02:00
|
|
|
|
inc ecx
|
2015-10-21 01:06:48 +02:00
|
|
|
|
@@:
|
|
|
|
|
mcall 21,12
|
|
|
|
|
jmp close
|
2015-10-15 17:26:59 +02:00
|
|
|
|
;---------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
START:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
mcall 68,11
|
|
|
|
|
stdcall dll.Load, @IMPORT
|
|
|
|
|
push eax
|
|
|
|
|
test eax,eax
|
|
|
|
|
jnz close
|
|
|
|
|
|
|
|
|
|
cmp [param],dword 'BOOT'
|
|
|
|
|
jz BootSettings
|
|
|
|
|
pop eax
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
2015-11-02 15:48:38 +01:00
|
|
|
|
; get current settings
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mcall 26,5
|
2015-10-21 01:06:48 +02:00
|
|
|
|
dec eax
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov [syslang],eax
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mcall 26,11
|
|
|
|
|
mov [lba_read],eax
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mcall 26,12
|
|
|
|
|
mov [pci_acc],eax
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mcall 18,8,1
|
|
|
|
|
mov [speaker_mute],eax
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mcall 48,9
|
|
|
|
|
mov [fontSmoothing],eax
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
2015-11-02 15:48:38 +01:00
|
|
|
|
mcall 48,11
|
|
|
|
|
mov [fontSize],eax
|
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
call loadtxt
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
draw_infotext:
|
|
|
|
|
mov eax,[syslang]
|
|
|
|
|
mov edi,[text]
|
2015-10-21 01:06:48 +02:00
|
|
|
|
lea esi,[eax*8+langs]
|
2015-10-15 17:26:59 +02:00
|
|
|
|
add edi,28
|
|
|
|
|
movsd
|
|
|
|
|
movsd
|
|
|
|
|
add edi,LLL-8
|
2013-06-16 17:31:13 +02:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov eax,[lba_read]
|
|
|
|
|
call onoff
|
|
|
|
|
mov [edi],ebx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov eax,[pci_acc]
|
|
|
|
|
call onoff
|
|
|
|
|
mov [edi+LLL],ebx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov eax,[speaker_mute]
|
|
|
|
|
call onoff
|
|
|
|
|
mov [edi+LLL*2],ebx
|
|
|
|
|
|
|
|
|
|
mov ebx,'SUBP'
|
|
|
|
|
mov ecx,'IXEL'
|
|
|
|
|
cmp [fontSmoothing],2
|
|
|
|
|
jz @f
|
|
|
|
|
mov eax,[fontSmoothing]
|
|
|
|
|
call onoff
|
|
|
|
|
mov ecx,' '
|
|
|
|
|
@@:
|
|
|
|
|
mov [edi+LLL*3],ebx
|
|
|
|
|
mov [edi+LLL*3+4],ecx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2015-11-02 15:48:38 +01:00
|
|
|
|
mov eax,[fontSize]
|
|
|
|
|
mov bl, 10
|
|
|
|
|
div bl
|
|
|
|
|
add ax, '00'
|
|
|
|
|
mov [edi+LLL*4],ax
|
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_window:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 12,1
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov ecx,50*65536+32*(4+stringsAmount)
|
|
|
|
|
mcall 0,<50,700>,,0xB4111199,0,title
|
|
|
|
|
; Main buttons
|
|
|
|
|
mov eax,8
|
|
|
|
|
mov ecx,6*65536+26
|
|
|
|
|
mov edx,4
|
|
|
|
|
mov esi,0x5580c0
|
|
|
|
|
mov ebp,stringsAmount
|
|
|
|
|
@@:
|
|
|
|
|
mcall ,<490,24>
|
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<526,24>
|
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<562,120>
|
|
|
|
|
inc edx
|
|
|
|
|
add ecx,32*65536
|
|
|
|
|
dec ebp
|
|
|
|
|
jnz @b
|
|
|
|
|
; APPLY ALL
|
|
|
|
|
add ecx,32*65536
|
|
|
|
|
mcall ,<514,168>,,3,0x005588dd
|
|
|
|
|
; SAVE ALL
|
|
|
|
|
add ecx,32*65536
|
2014-04-12 21:42:03 +02:00
|
|
|
|
dec edx
|
|
|
|
|
mcall
|
2015-10-15 17:26:59 +02:00
|
|
|
|
; text
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov eax,4
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov ebx,6*65536+11
|
|
|
|
|
mov ecx,1ffffffh
|
|
|
|
|
mov edx,[text]
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov esi,LLL
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov ebp,stringsAmount
|
2012-03-19 16:53:28 +01:00
|
|
|
|
newline:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall
|
2015-10-15 17:26:59 +02:00
|
|
|
|
add ebx,32
|
2014-04-12 21:42:03 +02:00
|
|
|
|
add edx,esi
|
|
|
|
|
dec ebp
|
|
|
|
|
jnz newline
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov ebp,2
|
|
|
|
|
add ebx,32
|
2012-03-19 16:53:28 +01:00
|
|
|
|
@@:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall
|
2015-10-15 17:26:59 +02:00
|
|
|
|
add ebx,32
|
2014-04-12 21:42:03 +02:00
|
|
|
|
add edx,esi
|
|
|
|
|
dec ebp
|
|
|
|
|
jnz @b
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
|
|
|
|
mcall 12,2
|
|
|
|
|
|
|
|
|
|
still:
|
|
|
|
|
mcall 10
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jz draw_window
|
|
|
|
|
|
|
|
|
|
cmp eax,2
|
|
|
|
|
jz key
|
|
|
|
|
|
|
|
|
|
cmp eax,3
|
|
|
|
|
jz button
|
|
|
|
|
|
|
|
|
|
jmp still
|
|
|
|
|
;---------------------------------------------------------------
|
|
|
|
|
key:
|
|
|
|
|
mcall 2
|
|
|
|
|
jmp still
|
|
|
|
|
;---------------------------------------------------------------
|
|
|
|
|
button:
|
|
|
|
|
mcall 17
|
|
|
|
|
shr eax,8
|
|
|
|
|
call dword[eax*4+buttonTab-4]
|
|
|
|
|
jmp draw_infotext
|
|
|
|
|
close:
|
|
|
|
|
pop eax
|
|
|
|
|
mcall -1
|
|
|
|
|
language1:
|
|
|
|
|
dec [syslang]
|
2015-10-21 01:06:48 +02:00
|
|
|
|
jns @f
|
2015-11-03 00:09:03 +01:00
|
|
|
|
mov [syslang],7
|
2015-10-21 01:06:48 +02:00
|
|
|
|
jmp @f
|
2015-10-15 17:26:59 +02:00
|
|
|
|
language2:
|
|
|
|
|
inc [syslang]
|
2015-11-03 00:09:03 +01:00
|
|
|
|
cmp [syslang],8
|
2015-11-02 15:48:38 +01:00
|
|
|
|
jc @f
|
2015-10-21 01:06:48 +02:00
|
|
|
|
mov [syslang],0
|
|
|
|
|
@@:
|
|
|
|
|
jmp loadtxt
|
2015-10-15 17:26:59 +02:00
|
|
|
|
LBA1:
|
|
|
|
|
btr [lba_read],0
|
|
|
|
|
ret
|
|
|
|
|
LBA2:
|
|
|
|
|
bts [lba_read],0
|
|
|
|
|
ret
|
|
|
|
|
PCI1:
|
|
|
|
|
btr [pci_acc],0
|
|
|
|
|
ret
|
|
|
|
|
PCI2:
|
|
|
|
|
bts [pci_acc],0
|
|
|
|
|
ret
|
|
|
|
|
SPEAKER1:
|
|
|
|
|
btr [speaker_mute],0
|
|
|
|
|
ret
|
|
|
|
|
SPEAKER2:
|
|
|
|
|
bts [speaker_mute],0
|
|
|
|
|
ret
|
|
|
|
|
font1:
|
|
|
|
|
cmp [fontSmoothing],0
|
|
|
|
|
jz @f
|
|
|
|
|
dec [fontSmoothing]
|
|
|
|
|
ret
|
|
|
|
|
font2:
|
|
|
|
|
cmp [fontSmoothing],2
|
|
|
|
|
jz @f
|
|
|
|
|
inc [fontSmoothing]
|
2015-11-02 15:48:38 +01:00
|
|
|
|
ret
|
|
|
|
|
fontSize1:
|
|
|
|
|
cmp [fontSize],10
|
|
|
|
|
jc @f
|
|
|
|
|
dec [fontSize]
|
2015-10-15 17:26:59 +02:00
|
|
|
|
@@:
|
|
|
|
|
ret
|
2015-11-02 15:48:38 +01:00
|
|
|
|
fontSize2:
|
|
|
|
|
inc [fontSize]
|
|
|
|
|
ret
|
2015-10-21 01:06:48 +02:00
|
|
|
|
apply_all:
|
|
|
|
|
call _lba_read
|
|
|
|
|
call _pci_acc
|
|
|
|
|
call _speaker_mute
|
2015-11-02 15:48:38 +01:00
|
|
|
|
call fontApply
|
|
|
|
|
call fontSizeApply
|
2015-10-21 01:06:48 +02:00
|
|
|
|
_syslang:
|
|
|
|
|
mov ecx,[syslang]
|
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,5
|
|
|
|
|
ret
|
|
|
|
|
_lba_read:
|
|
|
|
|
mcall 21,11,[lba_read]
|
|
|
|
|
ret
|
|
|
|
|
_pci_acc:
|
|
|
|
|
mcall 21,12,[pci_acc]
|
|
|
|
|
ret
|
|
|
|
|
fontApply:
|
|
|
|
|
mcall 48,10,[fontSmoothing]
|
|
|
|
|
ret
|
2015-11-02 15:48:38 +01:00
|
|
|
|
fontSizeApply:
|
|
|
|
|
mcall 48,12,[fontSize]
|
|
|
|
|
ret
|
2015-10-21 01:06:48 +02:00
|
|
|
|
_speaker_mute:
|
|
|
|
|
mcall 18,8,1
|
|
|
|
|
cmp [speaker_mute],eax
|
2015-11-02 15:48:38 +01:00
|
|
|
|
jz @f
|
2015-10-21 01:06:48 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 18
|
2015-11-02 15:48:38 +01:00
|
|
|
|
@@:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
ret
|
2015-10-15 17:26:59 +02:00
|
|
|
|
;---------------------------------------------------------------
|
|
|
|
|
loadtxt:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
cmp [syslang],3
|
|
|
|
|
jz .ru
|
|
|
|
|
cmp [syslang],5
|
|
|
|
|
jz .et
|
|
|
|
|
mov [text],texteng
|
|
|
|
|
ret
|
|
|
|
|
.ru:
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov [text],textrus
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2015-10-21 01:06:48 +02:00
|
|
|
|
.et:
|
2015-10-15 17:26:59 +02:00
|
|
|
|
mov [text],textet
|
|
|
|
|
ret
|
|
|
|
|
;---------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
onoff:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
cmp [syslang],3
|
|
|
|
|
jz .ru
|
|
|
|
|
cmp [syslang],5
|
|
|
|
|
jz .et
|
|
|
|
|
mov ebx,'OFF '
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
mov ebx,'ON '
|
|
|
|
|
ret
|
|
|
|
|
.ru:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov ebx,'<27><><EFBFBD> '
|
2015-10-21 01:06:48 +02:00
|
|
|
|
test eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
mov ebx,'<27><> '
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2015-10-21 01:06:48 +02:00
|
|
|
|
.et:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov ebx,'V<>L.'
|
2015-10-21 01:06:48 +02:00
|
|
|
|
test eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
mov ebx,'SEES'
|
|
|
|
|
@@:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2015-10-21 01:06:48 +02:00
|
|
|
|
;---------------------------------------------------------------
|
|
|
|
|
saveAll:
|
|
|
|
|
; system language
|
|
|
|
|
mov eax,[syslang]
|
|
|
|
|
mov ax, [eax*2+langMarks]
|
|
|
|
|
mov [param],eax
|
|
|
|
|
invoke ini.set_str, sz_ini, sz_system, sz_language, param, 2
|
|
|
|
|
|
2015-11-02 15:48:38 +01:00
|
|
|
|
; font size
|
|
|
|
|
invoke ini.set_int, sz_ini, sz_system, sz_fontSize, [fontSize]
|
2015-10-21 01:06:48 +02:00
|
|
|
|
|
|
|
|
|
; font smoothing
|
|
|
|
|
mov dword[param],'off'
|
|
|
|
|
cmp [fontSmoothing],0
|
|
|
|
|
jz @f
|
|
|
|
|
mov dword[param],'on '
|
|
|
|
|
cmp [fontSmoothing],1
|
|
|
|
|
jz @f
|
|
|
|
|
mov dword[param],'sbp'
|
|
|
|
|
@@:
|
|
|
|
|
invoke ini.set_str, sz_ini, sz_system, sz_fontSmooth, param, 3
|
|
|
|
|
|
|
|
|
|
; system speaker
|
|
|
|
|
mov dword[param],'off'
|
|
|
|
|
cmp [speaker_mute],0
|
|
|
|
|
jz @f
|
|
|
|
|
mov dword[param],'on '
|
|
|
|
|
@@:
|
|
|
|
|
invoke ini.set_str, sz_ini, sz_system, sz_speaker, param, 3
|
|
|
|
|
|
|
|
|
|
; LBA access for applications
|
|
|
|
|
mov dword[param],'off'
|
|
|
|
|
cmp [lba_read],0
|
|
|
|
|
jz @f
|
|
|
|
|
mov dword[param],'on '
|
|
|
|
|
@@:
|
|
|
|
|
invoke ini.set_str, sz_ini, sz_low_level, sz_lba, param, 3
|
|
|
|
|
|
|
|
|
|
; PCI access for applications
|
|
|
|
|
mov dword[param],'off'
|
|
|
|
|
cmp [pci_acc],0
|
|
|
|
|
jz @f
|
|
|
|
|
mov dword[param],'on '
|
|
|
|
|
@@:
|
|
|
|
|
invoke ini.set_str, sz_ini, sz_low_level, sz_pci, param, 3
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2015-10-15 17:26:59 +02:00
|
|
|
|
;---------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
buttonTab: ; button handler pointers: -,+,apply
|
|
|
|
|
dd close
|
|
|
|
|
dd saveAll
|
|
|
|
|
dd apply_all
|
|
|
|
|
dd language1
|
|
|
|
|
dd language2
|
|
|
|
|
dd _syslang
|
|
|
|
|
dd LBA1
|
|
|
|
|
dd LBA2
|
|
|
|
|
dd _lba_read
|
|
|
|
|
dd PCI1
|
|
|
|
|
dd PCI2
|
|
|
|
|
dd _pci_acc
|
|
|
|
|
dd SPEAKER1
|
|
|
|
|
dd SPEAKER2
|
|
|
|
|
dd _speaker_mute
|
|
|
|
|
dd font1
|
|
|
|
|
dd font2
|
|
|
|
|
dd fontApply
|
2015-11-02 15:48:38 +01:00
|
|
|
|
dd fontSize1
|
|
|
|
|
dd fontSize2
|
|
|
|
|
dd fontSizeApply
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
|
|
|
|
syslang dd 0
|
|
|
|
|
lba_read dd 0
|
|
|
|
|
pci_acc dd 0
|
|
|
|
|
speaker_mute dd 0
|
|
|
|
|
fontSmoothing dd 0
|
2015-11-02 15:48:38 +01:00
|
|
|
|
fontSize dd 0
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
2015-10-21 01:06:48 +02:00
|
|
|
|
@IMPORT:
|
|
|
|
|
library libini, 'libini.obj'
|
|
|
|
|
import libini, \
|
|
|
|
|
ini.get_str, 'ini_get_str',\
|
|
|
|
|
ini.get_int, 'ini_get_int',\
|
|
|
|
|
ini.set_str, 'ini_set_str',\
|
|
|
|
|
ini.set_int, 'ini_set_int'
|
|
|
|
|
|
|
|
|
|
title db "System settings",0
|
|
|
|
|
sz_ini db "/sys/settings/system.ini",0
|
|
|
|
|
|
|
|
|
|
sz_system db "system",0
|
|
|
|
|
sz_language db "language",0
|
2015-11-02 15:48:38 +01:00
|
|
|
|
sz_fontSize db "font height",0
|
2015-10-21 01:06:48 +02:00
|
|
|
|
sz_fontSmooth db "font smoothing",0
|
|
|
|
|
sz_speaker db "speaker mute",0
|
|
|
|
|
|
|
|
|
|
sz_mouse db "mouse",0
|
|
|
|
|
sz_speed db "speed",0
|
|
|
|
|
sz_delay db "delay",0
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
2015-10-21 01:06:48 +02:00
|
|
|
|
sz_low_level db "low-level",0
|
|
|
|
|
sz_lba db "LBA",0
|
|
|
|
|
sz_pci db "PCI",0
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
|
|
|
|
LLL = 56
|
|
|
|
|
stringsAmount = 6
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
text dd 0
|
|
|
|
|
langs:
|
2015-11-03 00:09:03 +01:00
|
|
|
|
db 'ENGLISH FINNISH GERMAN RUSSIAN FRENCH ESTONIANSPANISH ITALIAN '
|
2015-10-21 01:06:48 +02:00
|
|
|
|
langMarks:
|
2015-11-03 00:09:03 +01:00
|
|
|
|
db 'enfiderufretspit'
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
textrus:
|
2015-10-15 17:26:59 +02:00
|
|
|
|
db '<27><><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD> : < > <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> LBA : - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 設<> PCI : - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27>몫<EFBFBD><EBAAAB><EFBFBD><EFBFBD><EFBFBD> SPEAKER : - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮢ : - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
2015-11-02 15:48:38 +01:00
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮢ : - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>'
|
|
|
|
|
db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD> <20><><EFBFBD>'
|
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
texteng:
|
2015-10-15 17:26:59 +02:00
|
|
|
|
db 'System language : < > Apply '
|
2015-10-21 01:06:48 +02:00
|
|
|
|
db 'Allow LBA access : - + Apply '
|
|
|
|
|
db 'Allow PCI access : - + Apply '
|
|
|
|
|
db 'Disable SPEAKER : - + Apply '
|
2015-10-15 17:26:59 +02:00
|
|
|
|
db 'Font smoothing : - + Apply '
|
2015-11-02 15:48:38 +01:00
|
|
|
|
db 'Font height : - + Apply '
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
|
|
|
|
db 'NOTE: Apply all '
|
|
|
|
|
db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI Save all '
|
|
|
|
|
|
2013-09-21 22:26:44 +02:00
|
|
|
|
textet:
|
2015-10-15 17:26:59 +02:00
|
|
|
|
db 'S<>steemi keel : < > Kinnita '
|
|
|
|
|
db 'LBA lugemine lubatud : - + Kinnita '
|
|
|
|
|
db 'PCI juurdep<65><70>s programm. : - + Kinnita '
|
2015-10-21 01:06:48 +02:00
|
|
|
|
db 'Disable SPEAKER : - + Kinnita '
|
2015-10-15 17:26:59 +02:00
|
|
|
|
db 'Font smoothing : - + Kinnita '
|
2015-11-02 15:48:38 +01:00
|
|
|
|
db 'Font height : - + Kinnita '
|
2015-10-15 17:26:59 +02:00
|
|
|
|
|
|
|
|
|
db 'M<>RKUS: Kinnita k<>ik '
|
|
|
|
|
db 'SALVESTA SEADED ENNE KOLIBRIST V<>LJUMIST Salvesta k<>ik'
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2012-03-19 16:53:28 +01:00
|
|
|
|
IM_END:
|
2015-10-21 01:06:48 +02:00
|
|
|
|
param:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
rb 1024
|
2012-03-19 16:53:28 +01:00
|
|
|
|
stack_area:
|
2015-10-15 17:26:59 +02:00
|
|
|
|
I_END:
|