KFar 0.63: saves sort mode; bugfix in editor
git-svn-id: svn://kolibrios.org@1045 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
e275f0a5d1
commit
f1c6ce150c
@ -2,4 +2,5 @@
|
||||
@echo lang fix en >lang.inc
|
||||
@fasm kfar.asm kfar
|
||||
@erase lang.inc
|
||||
@kpack kfar
|
||||
@pause
|
@ -1393,10 +1393,10 @@ editor_reserve_space:
|
||||
pop edx ecx
|
||||
test eax, eax
|
||||
jz .nomem
|
||||
add [ebp + editor_data.memsize], ecx
|
||||
sub eax, ebp
|
||||
add ebp, eax
|
||||
add esi, eax
|
||||
add [ebp + editor_data.memsize], ecx
|
||||
push ecx
|
||||
mov ecx, max_height
|
||||
lea edi, [ebp + editor_data.linedata_start]
|
||||
|
@ -7,8 +7,8 @@ memsize dd mem
|
||||
dd stacktop
|
||||
dd 0, app_path
|
||||
|
||||
version equ '0.62'
|
||||
version_dword equ 0*10000h + 62
|
||||
version equ '0.63'
|
||||
version_dword equ 0*10000h + 63
|
||||
|
||||
min_width = 54
|
||||
max_width = 255
|
||||
@ -203,6 +203,24 @@ start:
|
||||
cmp eax, 4
|
||||
ja @f
|
||||
mov [panel2_colmode], eax
|
||||
@@:
|
||||
push 0
|
||||
push aLeftSortMode
|
||||
push aPanels
|
||||
push app_path
|
||||
call [ini.get_int]
|
||||
cmp eax, 14
|
||||
jae @f
|
||||
mov [panel1_sortmode], al
|
||||
@@:
|
||||
push 0
|
||||
push aRightSortMode
|
||||
push aPanels
|
||||
push app_path
|
||||
call [ini.get_int]
|
||||
cmp eax, 14
|
||||
jae @f
|
||||
mov [panel2_sortmode], al
|
||||
@@:
|
||||
push nullstr
|
||||
push 512
|
||||
@ -401,7 +419,6 @@ exit:
|
||||
pop esi ecx
|
||||
jmp .unload
|
||||
.unload_done:
|
||||
;if 0 ; commented due to bug in libini
|
||||
cmp [ini.set_int], aIniSetInt
|
||||
jz .nosave
|
||||
push [panel1_colmode]
|
||||
@ -414,8 +431,19 @@ exit:
|
||||
push aPanels
|
||||
push app_path
|
||||
call [ini.set_int]
|
||||
movzx eax, [panel1_sortmode]
|
||||
push eax
|
||||
push aLeftSortMode
|
||||
push aPanels
|
||||
push app_path
|
||||
call [ini.set_int]
|
||||
movzx eax, [panel2_sortmode]
|
||||
push eax
|
||||
push aRightSortMode
|
||||
push aPanels
|
||||
push app_path
|
||||
call [ini.set_int]
|
||||
.nosave:
|
||||
;end if
|
||||
if CHECK_FOR_LEAKS
|
||||
mov ecx, [panel1_files]
|
||||
call pgfree
|
||||
@ -8342,6 +8370,8 @@ aConfirmDeleteIncomplete db 'DeleteIncomplete',0
|
||||
aPanels db 'Panels',0
|
||||
aLeftViewMode db 'LeftViewMode',0
|
||||
aRightViewMode db 'RightViewMode',0
|
||||
aLeftSortMode db 'LeftSortMode',0
|
||||
aRightSortMode db 'RightSortMode',0
|
||||
|
||||
aEditor db 'Editor',0
|
||||
aEolStyle db 'EOLStyle',0
|
||||
|
@ -3,29 +3,46 @@ asm=/sys/TinyPad; AsmMenu1,AsmMenu2
|
||||
inc=/sys/TinyPad
|
||||
ini=/sys/TinyPad
|
||||
txt=/sys/TinyPad
|
||||
jpg=/sys/JpegView
|
||||
jpeg=/sys/JpegView
|
||||
gif=/sys/GIFVIEW; GifMenu1,MenuAnimage
|
||||
wav=/sys/AC97SND
|
||||
mp3=/sys/AC97SND
|
||||
mid=/sys/MIDAMP
|
||||
bmp=/sys/MV; BmpMenu1,MenuAnimage
|
||||
png=/sys/@rcher
|
||||
jpg=/sys/media/kiv
|
||||
jpeg=/sys/media/kiv
|
||||
gif=/sys/media/GIFVIEW; GifMenu1,MenuAnimage
|
||||
wav=/sys/media/AC97SND
|
||||
mp3=/sys/media/AC97SND
|
||||
mid=/sys/media/MIDAMP
|
||||
bmp=/sys/media/kiv; BmpMenu1,MenuAnimage
|
||||
png=/sys/media/kiv
|
||||
rtf=/sys/RtfRead
|
||||
3ds=/sys/3d/view3ds
|
||||
lif=/sys/demos/life2
|
||||
skn=/sys/desktop
|
||||
m3u=/sys/media/listplay
|
||||
lap=/sys/media/listplay
|
||||
asf=/sys/media/listplay
|
||||
cvs=/sys/graph
|
||||
obj=/sys/develop/cobj
|
||||
nes=/sys/fceu
|
||||
sna=/sys/e80
|
||||
htm=/sys/HTMLv
|
||||
html=/sys/HTMLv
|
||||
|
||||
[Menu]
|
||||
AsmMenu1=&<26>¥¤ ªâ®à,/sys/TinyPad
|
||||
AsmMenu2=&Š®¬¯¨«¨à®¢ âì,/sys/develop/fasm
|
||||
GifMenu1=&<26>à®á¬®âà,/sys/GIFVIEW
|
||||
BmpMenu1=&<26>à®á¬®âà,/sys/MV
|
||||
MenuAnimage=&<26>¥¤ ªâ®à,/sys/animage
|
||||
GifMenu1=&<26>à®á¬®âà,/sys/media/GIFVIEW
|
||||
BmpMenu1=&<26>à®á¬®âà,/sys/media/kiv
|
||||
MenuAnimage=&<26>¥¤ ªâ®à,/sys/media/animage
|
||||
|
||||
[Panels]
|
||||
# <20>¥¦¨¬ë ®â®¡à ¦¥¨ï ä ©«®¢ ¯ ¥«ïå
|
||||
# § 票ï ᮮ⢥âáâ¢ãîâ æ¨äà ¬ ¤«ï LCtrl+<1-4>
|
||||
LeftViewMode=2
|
||||
RightViewMode=2
|
||||
# <20>¥¦¨¬ë á®àâ¨à®¢ª¨ ä ©«®¢ ¯ ¥«ïå
|
||||
# § ç¥¨ï ¨¬¥îâ ¢¨¤ 2 * N + M, £¤¥
|
||||
# M = 0 - ¯àï¬ ï á®àâ¨à®¢ª , M = 1 - ®¡à â ï
|
||||
# N = 0-6 ᮮ⢥âáâ¢ã¥â ०¨¬ã á®àâ¨à®¢ª¨ ¤«ï Ctrl+F<3-9>
|
||||
LeftSortMode=0
|
||||
RightSortMode=0
|
||||
|
||||
[Editor]
|
||||
# ‘¨¬¢®«ë ª®æ áâப¨, ª®â®àë¥ ¡ã¤¥â ¢áâ ¢«ïâì
|
||||
|
Loading…
Reference in New Issue
Block a user