2011-08-17 13:18:45 +02:00
|
|
|
|
use32
|
|
|
|
|
org 0x0
|
|
|
|
|
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9> <20>ᥣ<EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
dd 1, start, i_end, mem, stacktop, 0, sys_path
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
include '../../macros.inc'
|
|
|
|
|
include '../../proc32.inc'
|
|
|
|
|
include '../../develop/libraries/box_lib/load_lib.mac'
|
|
|
|
|
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2015-11-24 15:55:05 +01:00
|
|
|
|
include '../../develop/libraries/TinyGL/asm_fork/opengl_const.inc'
|
2012-11-09 11:42:30 +01:00
|
|
|
|
include '../../dll.inc'
|
2011-08-17 13:18:45 +02:00
|
|
|
|
include 'lang.inc'
|
2011-09-09 22:55:11 +02:00
|
|
|
|
include 'info_fun_float.inc'
|
2015-11-26 15:58:32 +01:00
|
|
|
|
include 'info_menu.inc'
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
debug equ 0
|
|
|
|
|
|
|
|
|
|
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
|
|
|
|
|
|
|
|
|
struct FileInfoBlock
|
|
|
|
|
Function dd ?
|
|
|
|
|
Position dd ?
|
|
|
|
|
Flags dd ?
|
|
|
|
|
Count dd ?
|
|
|
|
|
Buffer dd ?
|
|
|
|
|
db ?
|
|
|
|
|
FileName dd ?
|
|
|
|
|
ends
|
|
|
|
|
|
|
|
|
|
run_file_70 FileInfoBlock
|
2015-11-05 16:25:54 +01:00
|
|
|
|
image_data dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>㦥<EFBFBD> <20><><EFBFBD> <20>८<EFBFBD>ࠧ<EFBFBD><E0A0A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
open_file_lif dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD> 3ds
|
2013-12-06 13:07:49 +01:00
|
|
|
|
open_file_size dd 0 ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⮣<EFBFBD> 䠩<><E4A0A9>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
;
|
2015-11-24 15:55:05 +01:00
|
|
|
|
main_wnd_height equ 460 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
fn_toolbar db 'toolbar.png',0
|
|
|
|
|
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3
|
|
|
|
|
IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*7
|
|
|
|
|
image_data_toolbar dd 0
|
|
|
|
|
;
|
|
|
|
|
TREE_ICON_SYS16_BMP_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*11+54 ;ࠧ<><E0A0A7><EFBFBD> bmp 䠩<><E4A0A9> <20> <20><><EFBFBD>⥬<EFBFBD>묨 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
icon_tl_sys dd 0 ;㪠<><E3AAA0>⥥<EFBFBD><E2A5A5> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
icon_toolbar dd 0 ;㪠<><E3AAA0>⥥<EFBFBD><E2A5A5> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ꥪ⮢
|
2013-12-06 13:07:49 +01:00
|
|
|
|
TOOLBAR_ICON_BMP_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*8+54 ;ࠧ<><E0A0A7><EFBFBD> bmp 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ꥪ⮢
|
2011-08-17 13:18:45 +02:00
|
|
|
|
;
|
2011-08-20 11:48:05 +02:00
|
|
|
|
IMAGE_FILE1_SIZE equ 128*144*3+54 ;ࠧ<><E0A0A7><EFBFBD> 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
macro load_image_file path,buf,size { ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
;path - <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>ப<EFBFBD><E0AEAA><EFBFBD><EFBFBD> <20><>ࠬ<EFBFBD><E0A0AC>
|
|
|
|
|
if path eqtype '' ;<3B><EFBFBD><E0AEA2>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>ப<EFBFBD><E0AEAA> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD> path
|
|
|
|
|
jmp @f
|
|
|
|
|
local .path_str
|
|
|
|
|
.path_str db path ;<3B><>ନ<EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
db 0
|
|
|
|
|
@@:
|
|
|
|
|
;32 - <20>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><>⥬
|
2015-11-05 16:25:54 +01:00
|
|
|
|
copy_path .path_str,[32],file_name,0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
else
|
2015-11-05 16:25:54 +01:00
|
|
|
|
copy_path path,[32],file_name,0 ;<3B><>ନ<EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>, <20><><EFBFBD>ࠧ㬥<E0A0A7><E3ACA5><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20>ணࠬ<E0AEA3><E0A0AC><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
stdcall mem.Alloc, dword size ;<3B>뤥<EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
mov [buf],eax
|
|
|
|
|
|
|
|
|
|
mov [run_file_70.Function], 0
|
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov [run_file_70.Count], dword size
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov [run_file_70.Buffer], eax
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov [run_file_70.FileName], file_name
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mcall 70,run_file_70 ;<3B><><EFBFBD><EFBFBD>㦠<EFBFBD><E3A6A0> 䠩<> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
cmp ebx,0xffffffff
|
|
|
|
|
je @f
|
|
|
|
|
;<3B><>।<EFBFBD><E0A5A4>塞 <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ॢ<EFBFBD><E0A5A2><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> image_data
|
|
|
|
|
stdcall dword[img_decode], dword[buf],ebx,0
|
|
|
|
|
mov dword[image_data],eax
|
|
|
|
|
;<3B>८<EFBFBD>ࠧ㥬 <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ଠ<EFBFBD><E0ACA0> rgb
|
|
|
|
|
stdcall dword[img_to_rgb2], dword[image_data],dword[buf]
|
|
|
|
|
;㤠<>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> image_data
|
|
|
|
|
stdcall dword[img_destroy], dword[image_data]
|
|
|
|
|
@@:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
;--------------------------------------
|
2011-08-23 19:00:19 +02:00
|
|
|
|
include 'data.inc'
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
level_stack dd 0
|
|
|
|
|
offs_last_timer dd 0 ;<3B><><EFBFBD><E1ABA5><EFBFBD><EFBFBD> ᤢ<><E1A4A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20>㭪樨 ⠩<><E2A0A9><EFBFBD><EFBFBD>
|
|
|
|
|
|
2011-08-17 21:32:25 +02:00
|
|
|
|
ID_ICON_CHUNK_MAIN equ 0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ID_ICON_CHUNK_NOT_FOUND equ 1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ID_ICON_DATA equ 2 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
FILE_ERROR_CHUNK_SIZE equ -3 ;<3B>訡<EFBFBD><E8A8A1> <20> ࠧ<><E0A0A7><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
2013-12-06 13:07:49 +01:00
|
|
|
|
file_3ds: ;<3B><>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20>ᯮ<EFBFBD><E1AFAE><EFBFBD>㥬<EFBFBD><E3A5AC> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⨨ 䠩<><E4A0A9>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.offs: dd 0 ;+0 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><>砫<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.size: dd 0 ;+4 ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD> 1-<2D><> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD> = ࠧ<><E0A0A7><EFBFBD> 䠩<><E4A0A9> 3ds)
|
2011-08-20 11:48:05 +02:00
|
|
|
|
rb 8*MAX_FILE_LEVEL
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2013-12-06 13:07:49 +01:00
|
|
|
|
size_one_list equ 42
|
|
|
|
|
list_offs_chunk_del equ 8 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
list_offs_chunk_lev equ 9 ;<3B><EFBFBD><E0AEA2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28>ய<EFBFBD>ᠭ <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<>)
|
|
|
|
|
list_offs_p_data equ 10 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
list_offs_text equ 14 ;ᤢ<><E1A4A2> <20><>砫<EFBFBD> ⥪<><E2A5AA><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
buffer rb size_one_list ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> ᯨ᮪ tree1
|
|
|
|
|
|
|
|
|
|
txt_3ds_symb db 0,0
|
|
|
|
|
;--------------------------------------
|
|
|
|
|
|
2011-09-09 22:55:11 +02:00
|
|
|
|
include 'info_wnd_coords.inc'
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
start:
|
|
|
|
|
load_libraries l_libs_start,l_libs_end
|
2015-11-05 16:25:54 +01:00
|
|
|
|
;<3B><EFBFBD>ઠ <20><> <>쪮 㤠筮 <20><><EFBFBD>㧨<EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov ebp,lib_0
|
|
|
|
|
.test_lib_open:
|
|
|
|
|
cmp dword [ebp+ll_struc_size-4],0
|
|
|
|
|
jz @f
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mcall -1 ;exit not correct
|
2015-11-24 15:55:05 +01:00
|
|
|
|
@@:
|
|
|
|
|
add ebp,ll_struc_size
|
|
|
|
|
cmp ebp,l_libs_end
|
|
|
|
|
jl .test_lib_open
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mcall 48,3,sc,sizeof.system_colors
|
|
|
|
|
mcall 40,0x27
|
|
|
|
|
stdcall [OpenDialog_Init],OpenDialog_data ;<3B><><EFBFBD><EFBFBD><EFBFBD>⮢<EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;kmenu initialisation
|
|
|
|
|
stdcall [kmenu_init],sc
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu], eax
|
|
|
|
|
|
|
|
|
|
stdcall [ksubmenu_new]
|
|
|
|
|
mov [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_Vertexes, 5
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_Faces, 6
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SEPARATOR, 0, 0
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_Light, 7
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu_view], eax
|
|
|
|
|
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_View, [main_menu_view]
|
|
|
|
|
stdcall [ksubmenu_add], [main_menu], eax
|
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov dword[w_scr_t1.type],1
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall dword[tl_data_init], tree1
|
|
|
|
|
;<3B><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 16*16 <20><><EFBFBD> tree_list
|
|
|
|
|
load_image_file 'tl_sys_16.png', icon_tl_sys,TREE_ICON_SYS16_BMP_SIZE
|
|
|
|
|
;<3B> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>뫮<EFBFBD><EBABAE>, <20><> <20> icon_tl_sys <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;<3B><> <20><><EFBFBD>樠<EFBFBD><E6A8A0><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20>訡<EFBFBD><E8A8A1> <20><> <20>㤥<EFBFBD>, <20>. <20>. <20><><EFBFBD><EFBFBD><EFBFBD> <20>㦭<EFBFBD><E3A6AD><EFBFBD> ࠧ<><E0A0A7><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree1.data_img_sys],eax
|
|
|
|
|
|
|
|
|
|
load_image_file 'objects.png', icon_toolbar,TOOLBAR_ICON_BMP_SIZE
|
|
|
|
|
mov eax,dword[icon_toolbar]
|
|
|
|
|
mov dword[tree1.data_img],eax
|
|
|
|
|
|
|
|
|
|
stdcall [buf2d_create], buf_0 ;ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
load_image_file 'font8x9.bmp', image_data_toolbar,IMAGE_FILE1_SIZE
|
|
|
|
|
stdcall [buf2d_create_f_img], buf_1,[image_data_toolbar] ;ᮧ<><E1AEA7><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall mem.Free,[image_data_toolbar] ;<3B><EFBFBD><E1A2AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [buf2d_conv_24_to_8], buf_1,1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><E0AEA7>筮<EFBFBD><E7ADAE><EFBFBD> 8 <20><><EFBFBD>
|
|
|
|
|
stdcall [buf2d_convert_text_matrix], buf_1
|
|
|
|
|
|
|
|
|
|
load_image_file fn_toolbar, image_data_toolbar,IMAGE_TOOLBAR_SIZE
|
|
|
|
|
|
|
|
|
|
stdcall mem.Alloc,MAX_FILE_SIZE
|
|
|
|
|
mov dword[open_file_lif],eax
|
|
|
|
|
|
|
|
|
|
mcall 26,9
|
|
|
|
|
mov [last_time],eax
|
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
stdcall [kosglMakeCurrent], 5,23,320,240,ctx1
|
2015-11-24 15:55:05 +01:00
|
|
|
|
stdcall [glEnable], GL_DEPTH_TEST
|
|
|
|
|
stdcall [glEnable], GL_NORMALIZE ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><>ଠ<EFBFBD><E0ACA0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>稭<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>䠪⮢
|
|
|
|
|
stdcall [glClearColor], 0.0,0.0,0.0,0.0
|
|
|
|
|
stdcall [glShadeModel], GL_SMOOTH
|
|
|
|
|
stdcall [gluNewQuadric]
|
|
|
|
|
mov [qObj],eax
|
|
|
|
|
|
2011-08-17 13:18:45 +02:00
|
|
|
|
call draw_window
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
still:
|
|
|
|
|
mcall 26,9
|
|
|
|
|
mov ebx,[last_time]
|
|
|
|
|
add ebx,10 ;<3B><><EFBFBD><EFBFBD>প<EFBFBD>
|
|
|
|
|
cmp ebx,eax
|
|
|
|
|
jge @f
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
@@:
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
mcall 23
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je timer_funct
|
|
|
|
|
|
|
|
|
|
cmp al,1
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jne @f
|
|
|
|
|
call draw_window
|
|
|
|
|
jmp still
|
|
|
|
|
@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
cmp al,2
|
|
|
|
|
jz key
|
|
|
|
|
cmp al,3
|
|
|
|
|
jz button
|
|
|
|
|
cmp al,6
|
2011-08-26 16:09:59 +02:00
|
|
|
|
jne @f
|
|
|
|
|
mcall 9,procinfo,-1
|
|
|
|
|
cmp ax,word[procinfo+4]
|
|
|
|
|
jne @f ;<3B><><EFBFBD><EFBFBD> <20><> <20><>⨢<EFBFBD><E2A8A2>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
call mouse
|
|
|
|
|
@@:
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
mouse:
|
|
|
|
|
stdcall [tl_mouse], dword tree1
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
timer_funct:
|
|
|
|
|
pushad
|
|
|
|
|
mcall 26,9
|
|
|
|
|
mov [last_time],eax
|
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;<3B><><EFBFBD>ᬠ<EFBFBD>ਢ<EFBFBD><E0A8A2><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall [tl_node_get_data],tree1
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp eax,0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
je @f
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov ebx,eax
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov eax,dword[ebx] ;<3B><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD>祭<EFBFBD><E7A5AD> ᤢ<><E1A4A2><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20>⭮<EFBFBD><E2ADAE>⥫쭮 <20><>砫<EFBFBD> 䠩<><E4A0A9>
|
2011-08-26 16:09:59 +02:00
|
|
|
|
mov ecx,dword[ebx+4] ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall hex_in_str, txt_3ds_offs.dig, eax,8
|
2011-08-26 16:09:59 +02:00
|
|
|
|
stdcall hex_in_str, txt_3ds_offs.siz, ecx,8
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
add eax,dword[open_file_lif] ;<3B><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD>祭<EFBFBD><E7A5AD> ᤢ<><E1A4A2><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp dword[offs_last_timer],eax
|
|
|
|
|
je @f
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;<3B> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> ᮢ<><E1AEA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov dword[offs_last_timer],eax
|
|
|
|
|
call buf_draw_beg
|
2011-08-20 11:48:05 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_3ds_offs,5,35,0xb000
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov edx,dword[ebx+list_offs_p_data]
|
2011-08-20 11:48:05 +02:00
|
|
|
|
cmp edx,0 ;ᬮ<>ਬ <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>ᠭ<EFBFBD><E1A0AD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
je .no_info
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,edx,5,45,0xb000
|
|
|
|
|
.no_info:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
add ecx,eax ;<3B><><EFBFBD><EFBFBD>砥<EFBFBD> ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall buf_draw_hex_table,eax,ecx ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 16-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [buf2d_draw], buf_0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>࠭<EFBFBD>
|
|
|
|
|
@@:
|
|
|
|
|
popad
|
2015-11-26 15:58:32 +01:00
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD>ᬮ<EFBFBD><E1ACAE> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD>न<EFBFBD><E0A4A8>⠬<EFBFBD> <20><>祪
|
|
|
|
|
;cmp byte[prop_wnd_run],0
|
|
|
|
|
;je @f
|
|
|
|
|
; call prop_timer_funct
|
|
|
|
|
;@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
buf_draw_beg:
|
|
|
|
|
stdcall [buf2d_clear], buf_0, [buf_0.color] ;<3B><><EFBFBD>⨬ <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_open_3ds,5,5,0xff
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,openfile_path,5,15,0xff
|
2011-08-17 21:32:25 +02:00
|
|
|
|
cmp dword[level_stack],FILE_ERROR_CHUNK_SIZE ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>訡<EFBFBD><E8A8A1> 䠩<><E4A0A9>
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_3ds_err_sizes,5,25,0xff0000
|
|
|
|
|
@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc buf_draw_hex_table, offs:dword, size_line:dword
|
|
|
|
|
pushad
|
|
|
|
|
locals
|
2011-08-20 11:48:05 +02:00
|
|
|
|
coord_y dd 55 ;<3B><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> y <20><><EFBFBD> <20><>砫<EFBFBD> <20>뢮<EFBFBD><EBA2AE> ⠡<><E2A0A1><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
endl
|
|
|
|
|
mov esi,dword[offs]
|
|
|
|
|
mov edi,dword[open_file_lif]
|
2011-08-20 11:48:05 +02:00
|
|
|
|
add edi,dword[file_3ds.size] ;edi - 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov dword[txt_3ds_offs.dig],0
|
|
|
|
|
cld
|
|
|
|
|
.cycle_rows:
|
|
|
|
|
mov ebx,5 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <><E1ABA5> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
mov edx,5+10*24 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <><E1ABA5> <20><><EFBFBD> ⥪<><E2A5AA><EFBFBD>
|
|
|
|
|
mov ecx,10
|
|
|
|
|
@@:
|
|
|
|
|
stdcall hex_in_str, txt_3ds_offs.dig, dword[esi],2
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_3ds_offs.dig,ebx,[coord_y],0
|
|
|
|
|
|
|
|
|
|
mov al,byte[esi]
|
|
|
|
|
mov byte[txt_3ds_symb],al
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_3ds_symb,edx,[coord_y],0x808080
|
|
|
|
|
inc esi
|
|
|
|
|
cmp esi,dword[size_line]
|
|
|
|
|
jne .end_block
|
|
|
|
|
stdcall draw_block_end_line, dword[coord_y]
|
|
|
|
|
.end_block:
|
|
|
|
|
cmp esi,edi
|
|
|
|
|
jge @f ;jg ???
|
|
|
|
|
add ebx,24
|
|
|
|
|
add edx,9 ;<3B><>ਭ<EFBFBD> 1-<2D><> ᨬ<><E1A8AC><EFBFBD><EFBFBD> +1pix
|
|
|
|
|
loop @b
|
|
|
|
|
add dword[coord_y],10 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1-<2D><> ᨬ<><E1A8AC><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD>ࢠ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD><E0AEAA><EFBFBD>)
|
|
|
|
|
mov ebx,dword[buf_0.h]
|
|
|
|
|
cmp dword[coord_y],ebx
|
|
|
|
|
jl .cycle_rows
|
|
|
|
|
@@:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
2015-11-24 15:55:05 +01:00
|
|
|
|
proc draw_block_end_line uses eax ebx ecx, coord_y:dword
|
|
|
|
|
add ebx,20 ;20 = width 2.5 symbols
|
|
|
|
|
mov eax,[coord_y]
|
|
|
|
|
sub eax,2
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
add ecx,10
|
|
|
|
|
stdcall [buf2d_line], buf_0, 0,ecx,ebx,ecx ,0xff
|
|
|
|
|
stdcall [buf2d_line], buf_0, ebx,ecx,ebx,eax ,0xff
|
|
|
|
|
stdcall [buf2d_line], buf_0, ebx,eax,5+10*24-4,eax ,0xff
|
2011-08-17 13:18:45 +02:00
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
draw_window:
|
|
|
|
|
pushad
|
|
|
|
|
mcall 12,1
|
|
|
|
|
xor eax,eax
|
|
|
|
|
mov edx,[sc.work]
|
2015-11-24 15:55:05 +01:00
|
|
|
|
or edx,0x33000000
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov edi,capt
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mcall , (20 shl 16)+560, (20 shl 16)+main_wnd_height
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2011-08-26 16:09:59 +02:00
|
|
|
|
mcall 9,procinfo,-1
|
|
|
|
|
mov eax,dword[procinfo.box.height]
|
|
|
|
|
cmp eax,250
|
|
|
|
|
jge @f
|
|
|
|
|
mov eax,250
|
|
|
|
|
@@:
|
|
|
|
|
sub eax,65
|
|
|
|
|
mov dword[tree1.box_height],eax
|
|
|
|
|
mov word[w_scr_t1+4],ax ;<3B><><EFBFBD><EFBFBD><EFBFBD> ࠧ<><E0A0A7><EFBFBD><EFBFBD> <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-30 13:10:56 +02:00
|
|
|
|
cmp eax,dword[buf_0.h] ;㢥<><E3A2A5>稢<EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jle @f
|
|
|
|
|
stdcall [buf2d_resize],buf_0,0,eax
|
|
|
|
|
mov dword[offs_last_timer],0 ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> ⠩<><E2A0A9><EFBFBD><EFBFBD>
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
mov eax,dword[procinfo.box.width]
|
|
|
|
|
cmp eax,400
|
|
|
|
|
jge @f
|
|
|
|
|
mov eax,400
|
|
|
|
|
@@:
|
|
|
|
|
sub eax,[buf_0.w]
|
|
|
|
|
sub eax,41
|
|
|
|
|
mov dword[tree1.box_width],eax
|
|
|
|
|
add ax,word[tree1.box_left]
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov word[w_scr_t1+sb_offs_start_x],ax
|
2011-08-30 13:10:56 +02:00
|
|
|
|
add ax,16+5
|
|
|
|
|
mov word[buf_0.l],ax
|
2011-08-26 16:09:59 +02:00
|
|
|
|
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov esi,[sc.work_button]
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mcall 8,(5 shl 16)+20,(5 shl 16)+20,3
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
mov ebx,(30 shl 16)+20
|
|
|
|
|
mov edx,4
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2011-09-12 13:00:48 +02:00
|
|
|
|
cmp byte[can_save],0
|
|
|
|
|
je @f
|
|
|
|
|
mov ebx,(55 shl 16)+20
|
|
|
|
|
mov edx,5
|
|
|
|
|
int 0x40
|
|
|
|
|
@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mcall ,(85 shl 16)+20,,6 ;<3B><><EFBFBD><EFBFBD> <20> <20><><EFBFBD>न<EFBFBD><E0A4A8>⠬<EFBFBD>
|
|
|
|
|
mcall ,(110 shl 16)+20,,7 ;㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mcall 7,[image_data_toolbar],(16 shl 16)+16,(7 shl 16)+7 ;new
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
mov edx,(32 shl 16)+7 ;open
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2011-09-12 13:00:48 +02:00
|
|
|
|
cmp byte[can_save],0
|
|
|
|
|
je @f
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
mov edx,(57 shl 16)+7 ;save
|
|
|
|
|
int 0x40
|
2013-12-06 13:07:49 +01:00
|
|
|
|
sub ebx,IMAGE_TOOLBAR_ICON_SIZE
|
2011-09-12 13:00:48 +02:00
|
|
|
|
@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2013-12-06 13:07:49 +01:00
|
|
|
|
add ebx,4*IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
mov edx,(87 shl 16)+7
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
mov edx,(112 shl 16)+7
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov dword[w_scr_t1.all_redraw],1
|
|
|
|
|
stdcall [tl_draw],dword tree1
|
|
|
|
|
|
|
|
|
|
stdcall [buf2d_draw], buf_0
|
|
|
|
|
|
|
|
|
|
mcall 12,2
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
key:
|
|
|
|
|
mcall 2
|
|
|
|
|
stdcall [tl_key], dword tree1
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
button:
|
|
|
|
|
mcall 17
|
|
|
|
|
cmp ah,3
|
|
|
|
|
jne @f
|
|
|
|
|
call but_new_file
|
2015-11-05 16:25:54 +01:00
|
|
|
|
jmp still
|
2011-08-17 13:18:45 +02:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,4
|
|
|
|
|
jne @f
|
|
|
|
|
call but_open_file
|
2015-11-05 16:25:54 +01:00
|
|
|
|
jmp still
|
2011-08-17 13:18:45 +02:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,5
|
|
|
|
|
jne @f
|
|
|
|
|
call but_save_file
|
2015-11-05 16:25:54 +01:00
|
|
|
|
jmp still
|
2011-08-17 13:18:45 +02:00
|
|
|
|
@@:
|
2011-09-09 22:55:11 +02:00
|
|
|
|
cmp ah,6
|
|
|
|
|
jne @f
|
|
|
|
|
call but_wnd_coords
|
2015-11-05 16:25:54 +01:00
|
|
|
|
jmp still
|
2011-09-09 22:55:11 +02:00
|
|
|
|
@@:
|
2013-12-06 13:07:49 +01:00
|
|
|
|
cmp ah,7
|
|
|
|
|
jne @f
|
|
|
|
|
call but_delete_chunk
|
2015-11-05 16:25:54 +01:00
|
|
|
|
jmp still
|
2013-12-06 13:07:49 +01:00
|
|
|
|
@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
cmp ah,1
|
|
|
|
|
jne still
|
|
|
|
|
.exit:
|
|
|
|
|
mov dword[tree1.data_img],0
|
|
|
|
|
mov dword[tree1.data_img_sys],0
|
2015-11-11 00:11:17 +01:00
|
|
|
|
stdcall [tl_data_clear], tree1
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall [buf2d_delete],buf_0
|
|
|
|
|
stdcall [buf2d_delete],buf_1 ;㤠<>塞 <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall mem.Free,[image_data_toolbar]
|
|
|
|
|
stdcall mem.Free,[open_file_lif]
|
2015-11-24 15:55:05 +01:00
|
|
|
|
stdcall [gluDeleteQuadric], [qObj]
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mcall -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_new_file:
|
2011-09-12 13:00:48 +02:00
|
|
|
|
mov byte[can_save],0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall [tl_info_clear], tree1 ;<3B><><EFBFBD><EFBFBD>⪠ ᯨ᪠ <20><>ꥪ⮢
|
|
|
|
|
stdcall [buf2d_clear], buf_0, [buf_0.color] ;<3B><><EFBFBD>⨬ <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [tl_draw], tree1
|
|
|
|
|
stdcall [buf2d_draw], buf_0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>࠭<EFBFBD>
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_open_file:
|
|
|
|
|
copy_path open_dialog_name,communication_area_default_path,file_name,0
|
2015-11-05 16:25:54 +01:00
|
|
|
|
pushad
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov [OpenDialog_data.type],0
|
|
|
|
|
stdcall [OpenDialog_Start],OpenDialog_data
|
|
|
|
|
cmp [OpenDialog_data.status],2
|
|
|
|
|
je .end_open_file
|
|
|
|
|
;<3B><><EFBFBD> <20><><EFBFBD> 㤠筮<E3A4A0> <20><><EFBFBD><EFBFBD><EFBFBD>⨨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
mov [run_file_70.Function], 0
|
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov dword[run_file_70.Count], MAX_FILE_SIZE
|
|
|
|
|
m2m [run_file_70.Buffer], dword[open_file_lif]
|
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov dword[run_file_70.FileName], openfile_path
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mcall 70,run_file_70 ;<3B><><EFBFBD><EFBFBD>㦠<EFBFBD><E3A6A0> 䠩<> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
cmp ebx,0xffffffff
|
|
|
|
|
je .end_open_file
|
|
|
|
|
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov [open_file_size],ebx
|
2011-08-17 13:18:45 +02:00
|
|
|
|
;mcall 71,1,openfile_path
|
|
|
|
|
|
2011-09-12 13:00:48 +02:00
|
|
|
|
mov byte[can_save],0
|
2013-12-06 13:07:49 +01:00
|
|
|
|
call init_tree
|
|
|
|
|
stdcall [buf2d_draw], buf_0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>࠭<EFBFBD>
|
2015-11-26 15:58:32 +01:00
|
|
|
|
call prop_wnd_clear_param ;<3B><><EFBFBD>⨬ <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD>न<EFBFBD><E0A4A8>⠬<EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
cmp byte[prop_wnd_run],0
|
|
|
|
|
je @f
|
|
|
|
|
;<3B><><EFBFBD>⨬ <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD>न<EFBFBD><E0A4A8>⠬<EFBFBD>
|
|
|
|
|
stdcall [tl_info_clear], tree3
|
|
|
|
|
@@:
|
2013-12-06 13:07:49 +01:00
|
|
|
|
|
|
|
|
|
.end_open_file:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
init_tree:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall [tl_info_clear], tree1 ;<3B><><EFBFBD><EFBFBD>⪠ ᯨ᪠ <20><>ꥪ⮢
|
|
|
|
|
|
|
|
|
|
mov esi,dword[open_file_lif]
|
|
|
|
|
cmp word[esi],CHUNK_MAIN
|
|
|
|
|
je @f
|
|
|
|
|
call buf_draw_beg
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_no_3ds,5,25,0xff0000 ;<3B><><EFBFBD>㥬 <20><>ப<EFBFBD> <20> ⥪<>⮬
|
|
|
|
|
jmp .end_open
|
|
|
|
|
@@:
|
|
|
|
|
cmp dword[esi+2],MAX_FILE_SIZE
|
|
|
|
|
jle @f
|
|
|
|
|
call buf_draw_beg
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_3ds_big_file,5,25,0xff0000 ;<3B><><EFBFBD>㥬 <20><>ப<EFBFBD> <20> ⥪<>⮬
|
|
|
|
|
jmp .end_open
|
|
|
|
|
@@:
|
|
|
|
|
;--- <20><>ࠡ<EFBFBD>⪠ <20><><EFBFBD><EFBFBD><EFBFBD>⮣<EFBFBD> *.3ds 䠩<><E4A0A9>
|
|
|
|
|
mov eax,file_3ds
|
|
|
|
|
mov dword[level_stack],0 ;<3B><><EFBFBD><EFBFBD><EFBFBD>塞 <20><EFBFBD><E0AEA2><EFBFBD> <20>⥪<EFBFBD>
|
|
|
|
|
mov dword[offs_last_timer],0
|
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> ᯨ᮪
|
2011-08-20 11:48:05 +02:00
|
|
|
|
stdcall add_3ds_object, ID_ICON_CHUNK_MAIN,0,dword[esi+2],0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
call block_children ;<3B>室 <20> <20><><EFBFBD><EFBFBD>୨<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
|
2011-08-17 21:32:25 +02:00
|
|
|
|
mov edi,dword[file_3ds.offs]
|
|
|
|
|
add edi,dword[file_3ds.size]
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.cycle_main:
|
|
|
|
|
cmp dword[level_stack],0
|
2011-08-17 21:32:25 +02:00
|
|
|
|
jle .end_cycle
|
|
|
|
|
|
|
|
|
|
cmp esi,edi ;<3B> <20><><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
jge .end_cycle
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2011-08-17 21:32:25 +02:00
|
|
|
|
mov edx,dword[esi+2] ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
call block_analiz
|
|
|
|
|
cmp dword[bl_found],0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
jne @f
|
|
|
|
|
;<3B><>ꥪ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
stdcall add_3ds_object, ID_ICON_CHUNK_NOT_FOUND,dword[level_stack],edx,0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
call block_next
|
|
|
|
|
jmp .cycle_main
|
|
|
|
|
@@:
|
|
|
|
|
;<3B><>ꥪ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
mov ecx,dword[bl_found]
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov bx,word[ecx+2] ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>ꥪ<EFBFBD><EAA5AA>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
stdcall add_3ds_object, ebx,dword[level_stack],edx,dword[ecx+5]
|
2011-08-17 13:18:45 +02:00
|
|
|
|
cmp byte[ecx+4],1
|
|
|
|
|
je .bl_data
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD> ᮤ<>ন<EFBFBD> <20><><EFBFBD><EFBFBD>୨<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
call block_children ;<3B>室 <20> <20><><EFBFBD><EFBFBD>୨<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
jmp .cycle_main
|
|
|
|
|
.bl_data:
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD> ᮤ<>ন<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
call block_analiz_data
|
|
|
|
|
jmp .cycle_main
|
|
|
|
|
.end_cycle:
|
|
|
|
|
stdcall [tl_cur_beg], tree1
|
|
|
|
|
stdcall [tl_draw], tree1
|
|
|
|
|
.end_open:
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;input:
|
|
|
|
|
; esi - memory pointer
|
2011-08-20 11:48:05 +02:00
|
|
|
|
;output:
|
|
|
|
|
; eax - new stack pointer
|
|
|
|
|
; esi - new memory pointer
|
2011-08-17 13:18:45 +02:00
|
|
|
|
align 4
|
|
|
|
|
block_analiz_data:
|
2011-08-20 11:48:05 +02:00
|
|
|
|
push ebx ecx edx edi
|
|
|
|
|
mov dx,word[esi]
|
2011-08-17 21:32:25 +02:00
|
|
|
|
mov ecx,dword[esi+2]
|
|
|
|
|
sub ecx,6 ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
add esi,6
|
|
|
|
|
mov ebx,dword[level_stack]
|
|
|
|
|
inc ebx
|
2011-08-20 11:48:05 +02:00
|
|
|
|
; *** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> ࠧ<>묨 <20><><EFBFBD><EFBFBD>묨 <20> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp dx,CHUNK_OBJBLOCK ;<3B><>ꥪ<EFBFBD>
|
|
|
|
|
jne @f
|
2011-08-30 13:10:56 +02:00
|
|
|
|
push ax
|
|
|
|
|
cld
|
|
|
|
|
xor al,al
|
|
|
|
|
mov edi,esi
|
|
|
|
|
repne scasb
|
|
|
|
|
pop ax
|
|
|
|
|
sub edi,esi ;edi - strlen
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,edi,0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ꥪ<EFBFBD><EAA5AA>
|
|
|
|
|
add esi,edi
|
|
|
|
|
;sub ecx,edi ;㦥 ᤥ<><E1A4A5><EFBFBD><EFBFBD> <20> repne
|
2011-08-20 11:48:05 +02:00
|
|
|
|
jmp .next_bl
|
|
|
|
|
@@:
|
2011-08-26 16:09:59 +02:00
|
|
|
|
cmp dx,CHUNK_VERTLIST ;ᯨ᮪ <20><><EFBFBD>設
|
|
|
|
|
je .vertexes
|
|
|
|
|
cmp dx,0x4111 ;䫠<><E4ABA0> <20><><EFBFBD>設
|
|
|
|
|
je .vertexes
|
2011-08-30 13:10:56 +02:00
|
|
|
|
cmp dx,CHUNK_MAPLIST ;⥪<><E2A5AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD>
|
2011-08-26 16:09:59 +02:00
|
|
|
|
je .vertexes
|
|
|
|
|
jmp @f
|
|
|
|
|
.vertexes: ;<3B><>ࠡ<EFBFBD>⪠ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, ᮤ<>ঠ<EFBFBD><E0A6A0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>設
|
2011-08-30 13:10:56 +02:00
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;<3B><> <20><><EFBFBD>設
|
2011-08-26 16:09:59 +02:00
|
|
|
|
add esi,2
|
|
|
|
|
sub ecx,2
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>設
|
|
|
|
|
sub esi,8 ;<3B><><EFBFBD><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> esi
|
|
|
|
|
call block_next
|
|
|
|
|
jmp .end_f
|
|
|
|
|
@@:
|
2011-08-30 13:10:56 +02:00
|
|
|
|
cmp dx,CHUNK_FACELIST ;ᯨ᮪ <20>࠭<EFBFBD><E0A0AD>
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;<3B><> <20>࠭<EFBFBD><E0A0AD>
|
|
|
|
|
push eax
|
|
|
|
|
xor eax,eax
|
|
|
|
|
mov ax,[esi]
|
|
|
|
|
shl eax,3
|
|
|
|
|
add esi,2
|
|
|
|
|
sub ecx,2
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,eax,0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>設
|
|
|
|
|
|
|
|
|
|
sub ecx,eax
|
|
|
|
|
cmp ecx,1
|
|
|
|
|
jl .data_3 ;<3B><EFBFBD><E0AEA2>塞 <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>뢠<EFBFBD>騩 <20><><EFBFBD><EFBFBD>ਠ<EFBFBD>, <20>ਬ<EFBFBD><E0A8AC>塞<EFBFBD><EFA5AC> <20> <20><>ꥪ<EFBFBD><EAA5AA>
|
|
|
|
|
add esi,eax
|
|
|
|
|
pop eax
|
|
|
|
|
jmp .next_bl
|
|
|
|
|
;stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ਠ<EFBFBD><E0A8A0>
|
|
|
|
|
;sub esi,eax ;<3B><><EFBFBD><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> esi
|
|
|
|
|
.data_3:
|
|
|
|
|
|
|
|
|
|
sub esi,8 ;<3B><><EFBFBD><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> esi
|
|
|
|
|
pop eax
|
|
|
|
|
call block_next
|
|
|
|
|
jmp .end_f
|
|
|
|
|
@@:
|
|
|
|
|
cmp dx,CHUNK_FACEMAT ;<3B><><EFBFBD><EFBFBD>ਠ<EFBFBD><E0A8A0> <20>࠭<EFBFBD><E0A0AD>
|
|
|
|
|
jne @f
|
|
|
|
|
push ax
|
|
|
|
|
cld
|
|
|
|
|
xor al,al
|
|
|
|
|
mov edi,esi
|
|
|
|
|
repne scasb
|
|
|
|
|
pop ax
|
|
|
|
|
sub edi,esi ;edi - strlen
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,edi,0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ꥪ<EFBFBD><EAA5AA>
|
|
|
|
|
add esi,edi
|
|
|
|
|
;sub ecx,edi ;㦥 ᤥ<><E1A4A5><EFBFBD><EFBFBD> <20> repne
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;<3B><> <20>࠭<EFBFBD><E0A0AD>
|
|
|
|
|
add esi,2
|
|
|
|
|
sub ecx,2
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>࠭<EFBFBD><E0A0AD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ਠ<EFBFBD>
|
|
|
|
|
sub esi,edi ;<3B><><EFBFBD><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> esi (1)
|
|
|
|
|
sub esi,8 ;<3B><><EFBFBD><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> esi (2)
|
|
|
|
|
call block_next
|
|
|
|
|
jmp .end_f
|
|
|
|
|
@@:
|
2011-08-20 11:48:05 +02:00
|
|
|
|
; *** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>묨 <20><> 㬮<>砭<EFBFBD><E7A0AD> (<28><><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0
|
|
|
|
|
sub esi,6 ;<3B><><EFBFBD><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> esi
|
|
|
|
|
call block_next
|
|
|
|
|
jmp .end_f
|
|
|
|
|
.next_bl:
|
|
|
|
|
; *** <20><><EFBFBD><EFBFBD>ன<EFBFBD><E0AEA9> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>⠢<EFBFBD><E2A0A2><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov dword[eax],esi ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><>砫<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ebx,dword[esi+2]
|
|
|
|
|
mov dword[eax+4],ebx ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
inc dword[level_stack]
|
|
|
|
|
add eax,8
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.end_f:
|
2011-08-20 11:48:05 +02:00
|
|
|
|
pop edi edx ecx ebx
|
2011-08-17 13:18:45 +02:00
|
|
|
|
ret
|
|
|
|
|
|
2011-08-17 21:32:25 +02:00
|
|
|
|
;<3B>室 <20> 1-<2D> <20><><EFBFBD><EFBFBD>୨<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
;output:
|
|
|
|
|
; edx - destroy
|
2011-08-17 13:18:45 +02:00
|
|
|
|
align 4
|
|
|
|
|
block_children:
|
2011-08-17 21:32:25 +02:00
|
|
|
|
push ecx
|
|
|
|
|
;<3B><EFBFBD>ઠ <20>ࠢ<EFBFBD><E0A0A2>쭮<EFBFBD><ECADAE><EFBFBD> ࠧ<><E0A0A7> <20><><EFBFBD><EFBFBD><EFBFBD><E0ADA5> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ebx,esi ;ᬥ饭<E1ACA5><E9A5AD> <20><>砫<EFBFBD> த<>⥫<EFBFBD><EFBFBD><E1AAAE> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add ebx,6 ;<3B><><EFBFBD><EFBFBD>室 <20><> <20><>砫<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E0ADA5> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add ebx,dword[ebx+2] ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E0ADA5> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ecx,esi ;ᬥ饭<E1ACA5><E9A5AD> <20><>砫<EFBFBD> த<>⥫<EFBFBD><EFBFBD><E1AAAE> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add ecx,dword[esi+2] ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 ࠧ<><E0A0A7><EFBFBD> த<>⥫<EFBFBD><EFBFBD><E1AAAE> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp ebx,ecx ;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>㦭<EFBFBD>, <20>. <20>. <20>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⮫쪮 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jle @f
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD> <20>訡<EFBFBD><E8A8A1> 䠩<><E4A0A9>, <20><><EFBFBD><EFBFBD>୨<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>室<EFBFBD><E5AEA4> <20><> <20>।<EFBFBD><E0A5A4><EFBFBD> த<>⥫<EFBFBD><EFBFBD><E1AAAE>
|
|
|
|
|
mov dword[level_stack],FILE_ERROR_CHUNK_SIZE
|
|
|
|
|
jmp .end_f
|
|
|
|
|
@@:
|
|
|
|
|
mov dword[eax],esi ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><>砫<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ebx,dword[esi+2]
|
|
|
|
|
mov dword[eax+4],ebx ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
add esi,6 ;<3B><><EFBFBD><EFBFBD>室<EFBFBD><E5AEA4> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
inc dword[level_stack]
|
|
|
|
|
add eax,8
|
|
|
|
|
.end_f:
|
|
|
|
|
pop ecx
|
2011-08-17 13:18:45 +02:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD>室 <20> <><E1ABA5>饬<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ⥪<>饣<EFBFBD> <20><EFBFBD><E0AEA2>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
;input:
|
|
|
|
|
; eax - <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><>६<EFBFBD><E0A5AC><EFBFBD>묨
|
2011-08-17 13:18:45 +02:00
|
|
|
|
align 4
|
|
|
|
|
block_next:
|
|
|
|
|
push ebx
|
|
|
|
|
add esi,dword[esi+2] ;<3B>ய<EFBFBD>᪠<EFBFBD><E1AAA0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
;<3B><EFBFBD>ઠ ࠧ<><E0A0A7> த<>⥫<EFBFBD><EFBFBD><E1AAAE> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>室<EFBFBD> <20><> <20><><EFBFBD>孨<EFBFBD> <20><EFBFBD><E0AEA2><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
@@:
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov ebx,dword[eax-8]
|
|
|
|
|
add ebx,dword[eax-4]
|
|
|
|
|
cmp esi,ebx
|
|
|
|
|
jl @f
|
|
|
|
|
dec dword[level_stack]
|
|
|
|
|
sub eax,8
|
2011-08-20 11:48:05 +02:00
|
|
|
|
cmp dword[level_stack],0
|
|
|
|
|
jg @b
|
2011-08-17 13:18:45 +02:00
|
|
|
|
@@:
|
|
|
|
|
pop ebx
|
|
|
|
|
ret
|
|
|
|
|
|
2011-08-20 11:48:05 +02:00
|
|
|
|
;<3B>㭪<EFBFBD><E3ADAA><EFBFBD> <20><><EFBFBD>᪠ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>뢠<EFBFBD>饩 <20><><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
;input:
|
|
|
|
|
;esi - memory pointer
|
|
|
|
|
;output:
|
2011-08-20 11:48:05 +02:00
|
|
|
|
;dword[bl_found] - pointer to chunk struct (= 0 if not found)
|
2011-08-17 13:18:45 +02:00
|
|
|
|
align 4
|
2011-08-20 11:48:05 +02:00
|
|
|
|
bl_found dd 0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
block_analiz:
|
|
|
|
|
pushad
|
2011-08-20 11:48:05 +02:00
|
|
|
|
mov dword[bl_found],0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mov ecx,type_bloks
|
|
|
|
|
@@:
|
|
|
|
|
mov bx,word[ecx]
|
|
|
|
|
cmp word[esi],bx
|
|
|
|
|
je .found
|
|
|
|
|
add ecx,sizeof.block_3ds
|
|
|
|
|
cmp ecx,type_bloks.end
|
|
|
|
|
jl @b
|
|
|
|
|
jmp .no_found
|
|
|
|
|
.found:
|
2011-08-20 11:48:05 +02:00
|
|
|
|
mov dword[bl_found],ecx
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.no_found:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; esi - 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㥬<EFBFBD><E3A5AC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
; level - <20><EFBFBD><E0AEA2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<>
|
|
|
|
|
; size_bl - ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
align 4
|
2011-08-20 11:48:05 +02:00
|
|
|
|
proc add_3ds_object, icon:dword,level:dword,size_bl:dword,info_bl:dword
|
2011-08-17 13:18:45 +02:00
|
|
|
|
pushad
|
|
|
|
|
mov bx,word[icon]
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,word[level]
|
|
|
|
|
|
|
|
|
|
mov eax,esi
|
|
|
|
|
sub eax,dword[open_file_lif]
|
|
|
|
|
mov dword[buffer],eax ;ᬥ饭<E1ACA5><E9A5AD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov ecx,dword[size_bl]
|
|
|
|
|
mov dword[buffer+4],ecx ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20>㭪樨 buf_draw_hex_table <20><><EFBFBD> <20><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>)
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov ecx,dword[bl_found]
|
|
|
|
|
cmp ecx,0
|
|
|
|
|
je @f
|
|
|
|
|
;... <20><><EFBFBD><EFBFBD><EFBFBD> <20>㦥<EFBFBD> <20><>㣮<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov cl,byte[ecx+4]
|
|
|
|
|
@@:
|
|
|
|
|
mov byte[buffer+list_offs_chunk_del],cl
|
|
|
|
|
mov ecx,[level]
|
|
|
|
|
mov byte[buffer+list_offs_chunk_lev],cl
|
2011-08-20 11:48:05 +02:00
|
|
|
|
mov ecx,dword[info_bl]
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov dword[buffer+list_offs_p_data],ecx
|
2011-08-20 11:48:05 +02:00
|
|
|
|
stdcall hex_in_str, buffer+list_offs_text,dword[esi+1],2
|
|
|
|
|
stdcall hex_in_str, buffer+list_offs_text+2,dword[esi],2 ;<3B><><EFBFBD> 3ds <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp ecx,0
|
|
|
|
|
jne @f
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov byte[buffer+list_offs_text+4],0 ;0 - ᨬ<><E1A8AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
jmp .no_capt
|
|
|
|
|
@@:
|
|
|
|
|
mov byte[buffer+list_offs_text+4],' '
|
|
|
|
|
mov esi,ecx
|
|
|
|
|
mov edi,buffer+list_offs_text+5
|
|
|
|
|
mov ecx,size_one_list-(list_offs_text+5)
|
|
|
|
|
cld
|
|
|
|
|
rep movsb
|
2015-11-26 15:58:32 +01:00
|
|
|
|
mov byte[buffer+size_one_list-1],0 ;0 - ᨬ<><E1A8AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD>
|
2011-08-20 11:48:05 +02:00
|
|
|
|
.no_capt:
|
2015-11-11 00:11:17 +01:00
|
|
|
|
stdcall [tl_node_add], tree1, ebx, buffer
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stdcall [tl_cur_next], tree1
|
|
|
|
|
if debug
|
2011-08-20 11:48:05 +02:00
|
|
|
|
stdcall print_err,sz_add_3ds_object,buffer+list_offs_text
|
2011-08-17 13:18:45 +02:00
|
|
|
|
end if
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
if debug
|
|
|
|
|
sz_add_3ds_object db 13,10,'3ds_object',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc print_err, fun:dword, mes:dword ;<3B>뢮<EFBFBD><EBA2AE><EFBFBD> ᮮ<>饭<EFBFBD><E9A5AD> <20><> 訡<><E8A8A1> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20>⫠<EFBFBD><E2ABA0><EFBFBD>
|
|
|
|
|
pushad
|
|
|
|
|
mov eax,63
|
|
|
|
|
mov ebx,1
|
|
|
|
|
|
|
|
|
|
mov esi,[fun]
|
|
|
|
|
@@:
|
|
|
|
|
mov cl,byte[esi]
|
|
|
|
|
int 0x40
|
|
|
|
|
inc esi
|
|
|
|
|
cmp byte[esi],0
|
|
|
|
|
jne @b
|
|
|
|
|
mov cl,':'
|
|
|
|
|
int 0x40
|
|
|
|
|
mov cl,' '
|
|
|
|
|
int 0x40
|
|
|
|
|
mov esi,[mes]
|
|
|
|
|
@@:
|
|
|
|
|
mov cl,byte[esi]
|
|
|
|
|
int 0x40
|
|
|
|
|
inc esi
|
|
|
|
|
cmp byte[esi],0
|
|
|
|
|
jne @b
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
2015-11-26 15:58:32 +01:00
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; eax - value
|
|
|
|
|
; edi - string buffer
|
|
|
|
|
; len - buffer len
|
|
|
|
|
;output:
|
|
|
|
|
align 4
|
|
|
|
|
proc convert_int_to_str, len:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov esi,[len]
|
|
|
|
|
add esi,edi
|
|
|
|
|
dec esi
|
|
|
|
|
call .str
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
.str:
|
|
|
|
|
mov ecx,0x0a
|
|
|
|
|
cmp eax,ecx
|
|
|
|
|
jb @f
|
|
|
|
|
xor edx,edx
|
|
|
|
|
div ecx
|
|
|
|
|
push edx
|
|
|
|
|
call .str
|
|
|
|
|
pop eax
|
|
|
|
|
@@:
|
|
|
|
|
cmp edi,esi
|
|
|
|
|
jge @f
|
|
|
|
|
or al,0x30
|
|
|
|
|
stosb
|
|
|
|
|
mov byte[edi],0
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
|
2011-08-17 13:18:45 +02:00
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc hex_in_str, buf:dword,val:dword,zif:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov edi,dword[buf]
|
|
|
|
|
mov ecx,dword[zif]
|
|
|
|
|
add edi,ecx
|
|
|
|
|
dec edi
|
|
|
|
|
mov ebx,dword[val]
|
|
|
|
|
|
|
|
|
|
.cycle:
|
|
|
|
|
mov al,bl
|
|
|
|
|
and al,0xf
|
|
|
|
|
cmp al,10
|
|
|
|
|
jl @f
|
|
|
|
|
add al,'a'-'0'-10
|
|
|
|
|
@@:
|
|
|
|
|
add al,'0'
|
|
|
|
|
mov byte[edi],al
|
|
|
|
|
dec edi
|
|
|
|
|
shr ebx,4
|
|
|
|
|
loop .cycle
|
|
|
|
|
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_save_file:
|
2011-09-12 13:00:48 +02:00
|
|
|
|
pushad
|
|
|
|
|
copy_path open_dialog_name,communication_area_default_path,file_name,0
|
|
|
|
|
mov [OpenDialog_data.type],1
|
|
|
|
|
stdcall [OpenDialog_Start],OpenDialog_data
|
|
|
|
|
cmp [OpenDialog_data.status],2
|
|
|
|
|
je .end_save_file
|
|
|
|
|
;<3B><><EFBFBD> <20><><EFBFBD> 㤠筮<E3A4A0> <20><><EFBFBD><EFBFBD><EFBFBD>⨨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
mov [run_file_70.Function], 2
|
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov ebx, dword[open_file_lif]
|
|
|
|
|
mov [run_file_70.Buffer], ebx
|
|
|
|
|
mov ebx,dword[ebx+2]
|
|
|
|
|
mov dword[run_file_70.Count], ebx ;ࠧ<><E0A0A7><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov dword[run_file_70.FileName], openfile_path
|
2015-11-26 15:58:32 +01:00
|
|
|
|
mcall 70,run_file_70
|
2011-09-12 13:00:48 +02:00
|
|
|
|
cmp ebx,0xffffffff
|
|
|
|
|
je .end_save_file
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;...ᮮ<>饭<EFBFBD><E9A5AD>...
|
2011-09-12 13:00:48 +02:00
|
|
|
|
.end_save_file:
|
|
|
|
|
popad
|
2011-08-17 13:18:45 +02:00
|
|
|
|
ret
|
|
|
|
|
|
2011-09-09 22:55:11 +02:00
|
|
|
|
align 4
|
|
|
|
|
but_wnd_coords:
|
|
|
|
|
cmp byte[prop_wnd_run],0
|
|
|
|
|
jne @f
|
|
|
|
|
pushad
|
|
|
|
|
mcall 51,1,prop_start,thread_coords
|
|
|
|
|
popad
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2013-12-06 13:07:49 +01:00
|
|
|
|
;description:
|
|
|
|
|
; 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>⮣<EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
align 4
|
|
|
|
|
but_delete_chunk:
|
|
|
|
|
pushad
|
|
|
|
|
stdcall [tl_node_get_data],tree1
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp eax,0
|
2013-12-06 13:07:49 +01:00
|
|
|
|
je .end_f
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp byte[eax+list_offs_chunk_del],0 ;<3B> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>饭 <20><> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
jne .notify
|
|
|
|
|
|
|
|
|
|
;(1) <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov edx,dword[eax+4] ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
sub [open_file_size],edx ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧ<><E0A0A7> 䠩<><E4A0A9>
|
|
|
|
|
mov ecx,[open_file_size]
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov ebx,dword[eax] ;<3B><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD>祭<EFBFBD><E7A5AD> ᤢ<><E1A4A2><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20>⭮<EFBFBD><E2ADAE>⥫쭮 <20><>砫<EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
sub ecx,ebx ;ecx - ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᤢ<><E1A4A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
add ebx,dword[open_file_lif] ;<3B><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD>祭<EFBFBD><E7A5AD> ᤢ<><E1A4A2><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov edi,ebx
|
|
|
|
|
mov esi,ebx
|
2013-12-06 13:07:49 +01:00
|
|
|
|
add esi,edx
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov bl,byte[eax+list_offs_chunk_lev] ;<3B><>६ <20><EFBFBD><E0AEA2><EFBFBD> ⥪<>饣<EFBFBD> 㧫<>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
rep movsb
|
|
|
|
|
mov byte[can_save],1
|
|
|
|
|
|
|
|
|
|
;(2) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧ<><E0A0A7> த<>⥫<EFBFBD>᪨<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp bl,0
|
2013-12-06 13:07:49 +01:00
|
|
|
|
je .end_2
|
|
|
|
|
.cycle_2:
|
|
|
|
|
stdcall [tl_cur_perv], tree1
|
|
|
|
|
stdcall [tl_node_get_data],tree1
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp eax,0
|
2013-12-06 13:07:49 +01:00
|
|
|
|
je .end_2
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp byte[eax+list_offs_chunk_lev],bl
|
2013-12-06 13:07:49 +01:00
|
|
|
|
jge .cycle_2
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov bl,byte[eax+list_offs_chunk_lev]
|
|
|
|
|
mov ecx,[eax]
|
2013-12-06 13:07:49 +01:00
|
|
|
|
add ecx,[open_file_lif]
|
|
|
|
|
sub dword[ecx+2],edx
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp bl,0 ;<3B> ᠬ<><E1A0AC> <20><><EFBFBD>孨<EFBFBD> 㧥<>, <20><> bl=0
|
2013-12-06 13:07:49 +01:00
|
|
|
|
jne .cycle_2
|
|
|
|
|
.end_2:
|
|
|
|
|
|
|
|
|
|
;(3) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᯨ᪠ tree1
|
|
|
|
|
call init_tree
|
|
|
|
|
call draw_window
|
|
|
|
|
|
|
|
|
|
jmp .end_f
|
|
|
|
|
.notify:
|
|
|
|
|
notify_window_run txt_not_delete
|
|
|
|
|
.end_f:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; buf - 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><>ப<EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> 10 <20><><EFBFBD> 16 <20><>筮<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
;output:
|
|
|
|
|
; eax - <20><>
|
|
|
|
|
align 4
|
2015-11-05 16:25:54 +01:00
|
|
|
|
proc conv_str_to_int uses ebx ecx esi, buf:dword
|
2011-08-17 13:18:45 +02:00
|
|
|
|
xor eax,eax
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
mov esi,[buf]
|
|
|
|
|
;<3B><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥫<EFBFBD><E2A5AB><EFBFBD><EFBFBD> <20><>ᥫ
|
|
|
|
|
xor ecx,ecx
|
|
|
|
|
inc ecx
|
|
|
|
|
cmp byte[esi],'-'
|
|
|
|
|
jne @f
|
|
|
|
|
dec ecx
|
|
|
|
|
inc esi
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
cmp word[esi],'0x'
|
|
|
|
|
je .load_digit_16
|
|
|
|
|
|
|
|
|
|
.load_digit_10: ;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD> 10-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
mov bl,byte[esi]
|
|
|
|
|
cmp bl,'0'
|
|
|
|
|
jl @f
|
|
|
|
|
cmp bl,'9'
|
|
|
|
|
jg @f
|
|
|
|
|
sub bl,'0'
|
|
|
|
|
imul eax,10
|
|
|
|
|
add eax,ebx
|
|
|
|
|
inc esi
|
|
|
|
|
jmp .load_digit_10
|
|
|
|
|
jmp @f
|
|
|
|
|
|
|
|
|
|
.load_digit_16: ;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD> 16-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
add esi,2
|
|
|
|
|
.cycle_16:
|
|
|
|
|
mov bl,byte[esi]
|
|
|
|
|
cmp bl,'0'
|
|
|
|
|
jl @f
|
|
|
|
|
cmp bl,'f'
|
|
|
|
|
jg @f
|
|
|
|
|
cmp bl,'9'
|
|
|
|
|
jle .us1
|
|
|
|
|
cmp bl,'A'
|
|
|
|
|
jl @f ;<3B><>ᥨ<EFBFBD><E1A5A8><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD> >'9' <20> <'A'
|
|
|
|
|
.us1: ;<3B><><EFBFBD>⠢<EFBFBD><E2A0A2><EFBFBD> <20><EFBFBD><E1ABAE><EFBFBD>
|
|
|
|
|
cmp bl,'F'
|
|
|
|
|
jle .us2
|
|
|
|
|
cmp bl,'a'
|
|
|
|
|
jl @f ;<3B><>ᥨ<EFBFBD><E1A5A8><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD> >'F' <20> <'a'
|
|
|
|
|
sub bl,32 ;<3B><>ॢ<EFBFBD><E0A5A2><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD> <20> <20><><EFBFBD>孨<EFBFBD> ॣ<><E0A5A3><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD>饭<EFBFBD><E9A5AD> <20><> <20><><EFBFBD><E1ABA5>饩 <20><>ࠡ<EFBFBD>⪨
|
|
|
|
|
.us2: ;<3B><><EFBFBD>⠢<EFBFBD><E2A0A2><EFBFBD> <20><EFBFBD><E1ABAE><EFBFBD>
|
|
|
|
|
sub bl,'0'
|
|
|
|
|
cmp bl,9
|
|
|
|
|
jle .cor1
|
|
|
|
|
sub bl,7 ;convert 'A' to '10'
|
|
|
|
|
.cor1:
|
|
|
|
|
shl eax,4
|
|
|
|
|
add eax,ebx
|
|
|
|
|
inc esi
|
|
|
|
|
jmp .cycle_16
|
|
|
|
|
@@:
|
|
|
|
|
cmp ecx,0 ;<3B> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥫쭮<E2A5AB>
|
|
|
|
|
jne @f
|
|
|
|
|
sub ecx,eax
|
|
|
|
|
mov eax,ecx
|
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
OpenDialog_data:
|
|
|
|
|
.type dd 0 ;0 - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 1 - <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD>, 2 - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>४<EFBFBD><E0A5AA><EFBFBD><EFBFBD><EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
.procinfo dd procinfo ;+4
|
|
|
|
|
.com_area_name dd communication_area_name ;+8
|
|
|
|
|
.com_area dd 0 ;+12
|
|
|
|
|
.opendir_path dd plugin_path ;+16
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.dir_default_path dd default_dir ;+20
|
|
|
|
|
.start_path dd file_name ;+24 <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
.draw_window dd draw_window ;+28
|
|
|
|
|
.status dd 0 ;+32
|
|
|
|
|
.openfile_path dd openfile_path ;+36 <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
.filename_area dd filename_area ;+40
|
|
|
|
|
.filter_area dd Filter
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.x:
|
|
|
|
|
.x_size dw 420 ;+48 ; Window X size
|
|
|
|
|
.x_start dw 10 ;+50 ; Window X position
|
|
|
|
|
.y:
|
|
|
|
|
.y_size dw 320 ;+52 ; Window y size
|
|
|
|
|
.y_start dw 10 ;+54 ; Window Y position
|
|
|
|
|
|
|
|
|
|
default_dir db '/rd/1',0
|
|
|
|
|
|
|
|
|
|
communication_area_name:
|
|
|
|
|
db 'FFFFFFFF_open_dialog',0
|
|
|
|
|
open_dialog_name:
|
|
|
|
|
db 'opendial',0
|
|
|
|
|
communication_area_default_path:
|
|
|
|
|
db '/rd/1/File managers/',0
|
|
|
|
|
|
|
|
|
|
Filter:
|
|
|
|
|
dd Filter.end - Filter.1
|
|
|
|
|
.1:
|
|
|
|
|
db '3DS',0
|
|
|
|
|
db 'TXT',0
|
|
|
|
|
.end:
|
|
|
|
|
db 0
|
|
|
|
|
|
|
|
|
|
|
2015-11-24 15:55:05 +01:00
|
|
|
|
align 4
|
2011-08-17 13:18:45 +02:00
|
|
|
|
system_dir_0 db '/sys/lib/'
|
|
|
|
|
lib_name_0 db 'proc_lib.obj',0
|
|
|
|
|
system_dir_1 db '/sys/lib/'
|
|
|
|
|
lib_name_1 db 'libimg.obj',0
|
|
|
|
|
system_dir_2 db '/sys/lib/'
|
|
|
|
|
lib_name_2 db 'box_lib.obj',0
|
2015-11-05 16:25:54 +01:00
|
|
|
|
system_dir_3 db '/sys/lib/'
|
|
|
|
|
lib_name_3 db 'buf2d.obj',0
|
2015-11-24 15:55:05 +01:00
|
|
|
|
system_dir_4 db '/sys/lib/'
|
|
|
|
|
lib_name_4 db 'kmenu.obj',0
|
|
|
|
|
system_dir_5 db '/sys/lib/'
|
|
|
|
|
lib_name_5 db 'tinygl.obj',0
|
|
|
|
|
|
|
|
|
|
if lang eq ru
|
|
|
|
|
head_f_i:
|
|
|
|
|
head_f_l db '<27><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20>訡<EFBFBD><E8A8A1>',0
|
|
|
|
|
err_msg_found_lib_0 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'proc_lib.obj',39,0
|
|
|
|
|
err_msg_import_0 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'proc_lib.obj',39,0
|
|
|
|
|
err_msg_found_lib_1 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libimg.obj',39,0
|
|
|
|
|
err_msg_import_1 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'libimg.obj',39,0
|
|
|
|
|
err_msg_found_lib_2 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'box_lib.obj',39,0
|
|
|
|
|
err_msg_import_2 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'box_lib',39,0
|
|
|
|
|
err_msg_found_lib_3 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'buf2d.obj',39,0
|
|
|
|
|
err_msg_import_3 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'buf2d',39,0
|
|
|
|
|
err_msg_found_lib_4 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'kmenu.obj',39,0
|
|
|
|
|
err_msg_import_4 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'kmenu',39,0
|
|
|
|
|
err_msg_found_lib_5 db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'tinygl.obj',39,0
|
|
|
|
|
err_msg_import_5 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ',39,'tinygl',39,0
|
|
|
|
|
else
|
|
|
|
|
head_f_i:
|
|
|
|
|
head_f_l db 'System error',0
|
|
|
|
|
err_msg_found_lib_0 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,0
|
|
|
|
|
err_msg_import_0 db 'Error on load import library ',39,'proc_lib.obj',39,0
|
|
|
|
|
err_msg_found_lib_1 db 'Sorry I cannot found library ',39,'libimg.obj',39,0
|
|
|
|
|
err_msg_import_1 db 'Error on load import library ',39,'libimg.obj',39,0
|
|
|
|
|
err_msg_found_lib_2 db 'Sorry I cannot found library ',39,'box_lib.obj',39,0
|
|
|
|
|
err_msg_import_2 db 'Error on load import library ',39,'box_lib.obj',39,0
|
|
|
|
|
err_msg_found_lib_3 db 'Sorry I cannot found library ',39,'buf2d.obj',39,0
|
|
|
|
|
err_msg_import_3 db 'Error on load import library ',39,'buf2d.obj',39,0
|
|
|
|
|
err_msg_found_lib_4 db 'Sorry I cannot found library ',39,'kmenu.obj',39,0
|
|
|
|
|
err_msg_import_4 db 'Error on load import library ',39,'kmenu.obj',39,0
|
|
|
|
|
err_msg_found_lib_5 db 'Sorry I cannot found library ',39,'tinygl.obj',39,0
|
|
|
|
|
err_msg_import_5 db 'Error on load import library ',39,'tinygl',39,0
|
|
|
|
|
end if
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2015-11-24 15:55:05 +01:00
|
|
|
|
align 4
|
2011-08-17 13:18:45 +02:00
|
|
|
|
l_libs_start:
|
2015-11-05 16:25:54 +01:00
|
|
|
|
lib_0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\
|
2015-11-24 15:55:05 +01:00
|
|
|
|
err_msg_found_lib_0, head_f_l, proclib_import,err_msg_import_0, head_f_i
|
2015-11-05 16:25:54 +01:00
|
|
|
|
lib_1 l_libs lib_name_1, sys_path, file_name, system_dir_1,\
|
2015-11-24 15:55:05 +01:00
|
|
|
|
err_msg_found_lib_1, head_f_l, import_libimg, err_msg_import_1, head_f_i
|
|
|
|
|
lib_2 l_libs lib_name_2, sys_path, library_path, system_dir_2,\
|
|
|
|
|
err_msg_found_lib_2, head_f_l, import_box_lib,err_msg_import_2,head_f_i
|
|
|
|
|
lib_3 l_libs lib_name_3, sys_path, library_path, system_dir_3,\
|
|
|
|
|
err_msg_found_lib_3, head_f_l, import_buf2d, err_msg_import_3,head_f_i
|
|
|
|
|
lib_4 l_libs lib_name_4, sys_path, library_path, system_dir_4,\
|
|
|
|
|
err_msg_found_lib_4, head_f_l, import_libkmenu,err_msg_import_4,head_f_i
|
|
|
|
|
lib_5 l_libs lib_name_5, sys_path, library_path, system_dir_5,\
|
|
|
|
|
err_msg_found_lib_5, head_f_l, import_lib_tinygl,err_msg_import_5,head_f_i
|
2011-08-17 13:18:45 +02:00
|
|
|
|
l_libs_end:
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_libimg:
|
|
|
|
|
dd alib_init1
|
|
|
|
|
img_is_img dd aimg_is_img
|
|
|
|
|
img_info dd aimg_info
|
|
|
|
|
img_from_file dd aimg_from_file
|
|
|
|
|
img_to_file dd aimg_to_file
|
|
|
|
|
img_from_rgb dd aimg_from_rgb
|
|
|
|
|
img_to_rgb dd aimg_to_rgb
|
|
|
|
|
img_to_rgb2 dd aimg_to_rgb2
|
|
|
|
|
img_decode dd aimg_decode
|
|
|
|
|
img_encode dd aimg_encode
|
|
|
|
|
img_create dd aimg_create
|
|
|
|
|
img_destroy dd aimg_destroy
|
|
|
|
|
img_destroy_layer dd aimg_destroy_layer
|
|
|
|
|
img_count dd aimg_count
|
|
|
|
|
img_lock_bits dd aimg_lock_bits
|
|
|
|
|
img_unlock_bits dd aimg_unlock_bits
|
|
|
|
|
img_flip dd aimg_flip
|
|
|
|
|
img_flip_layer dd aimg_flip_layer
|
|
|
|
|
img_rotate dd aimg_rotate
|
|
|
|
|
img_rotate_layer dd aimg_rotate_layer
|
|
|
|
|
img_draw dd aimg_draw
|
|
|
|
|
|
|
|
|
|
dd 0,0
|
|
|
|
|
alib_init1 db 'lib_init',0
|
|
|
|
|
aimg_is_img db 'img_is_img',0 ;<3B><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ᤥ<><E1A4A5><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
aimg_info db 'img_info',0
|
|
|
|
|
aimg_from_file db 'img_from_file',0
|
|
|
|
|
aimg_to_file db 'img_to_file',0
|
|
|
|
|
aimg_from_rgb db 'img_from_rgb',0
|
|
|
|
|
aimg_to_rgb db 'img_to_rgb',0 ;<3B>८<EFBFBD>ࠧ<EFBFBD><E0A0A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> RGB
|
|
|
|
|
aimg_to_rgb2 db 'img_to_rgb2',0
|
|
|
|
|
aimg_decode db 'img_decode',0 ;<3B><>⮬<EFBFBD><E2AEAC><EFBFBD><EFBFBD><EFBFBD>᪨ <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD> <20><>ଠ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪨<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
aimg_encode db 'img_encode',0
|
|
|
|
|
aimg_create db 'img_create',0
|
|
|
|
|
aimg_destroy db 'img_destroy',0
|
|
|
|
|
aimg_destroy_layer db 'img_destroy_layer',0
|
|
|
|
|
aimg_count db 'img_count',0
|
|
|
|
|
aimg_lock_bits db 'img_lock_bits',0
|
|
|
|
|
aimg_unlock_bits db 'img_unlock_bits',0
|
|
|
|
|
aimg_flip db 'img_flip',0
|
|
|
|
|
aimg_flip_layer db 'img_flip_layer',0
|
|
|
|
|
aimg_rotate db 'img_rotate',0
|
|
|
|
|
aimg_rotate_layer db 'img_rotate_layer',0
|
|
|
|
|
aimg_draw db 'img_draw',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proclib_import: ;<3B><><EFBFBD>ᠭ<EFBFBD><E1A0AD> <20><>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD>㥬<EFBFBD><E3A5AC> <20>㭪権
|
|
|
|
|
OpenDialog_Init dd aOpenDialog_Init
|
|
|
|
|
OpenDialog_Start dd aOpenDialog_Start
|
|
|
|
|
dd 0,0
|
|
|
|
|
aOpenDialog_Init db 'OpenDialog_init',0
|
|
|
|
|
aOpenDialog_Start db 'OpenDialog_start',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_buf2d:
|
|
|
|
|
dd sz_init0
|
|
|
|
|
buf2d_create dd sz_buf2d_create
|
|
|
|
|
buf2d_create_f_img dd sz_buf2d_create_f_img
|
|
|
|
|
buf2d_clear dd sz_buf2d_clear
|
|
|
|
|
buf2d_draw dd sz_buf2d_draw
|
|
|
|
|
buf2d_delete dd sz_buf2d_delete
|
2011-08-30 13:10:56 +02:00
|
|
|
|
buf2d_resize dd sz_buf2d_resize
|
2011-08-17 13:18:45 +02:00
|
|
|
|
buf2d_line dd sz_buf2d_line
|
|
|
|
|
buf2d_rect_by_size dd sz_buf2d_rect_by_size
|
|
|
|
|
buf2d_filled_rect_by_size dd sz_buf2d_filled_rect_by_size
|
|
|
|
|
buf2d_circle dd sz_buf2d_circle
|
|
|
|
|
buf2d_img_hdiv2 dd sz_buf2d_img_hdiv2
|
|
|
|
|
buf2d_img_wdiv2 dd sz_buf2d_img_wdiv2
|
|
|
|
|
buf2d_conv_24_to_8 dd sz_buf2d_conv_24_to_8
|
|
|
|
|
buf2d_conv_24_to_32 dd sz_buf2d_conv_24_to_32
|
|
|
|
|
buf2d_bit_blt dd sz_buf2d_bit_blt
|
|
|
|
|
buf2d_bit_blt_transp dd sz_buf2d_bit_blt_transp
|
|
|
|
|
buf2d_bit_blt_alpha dd sz_buf2d_bit_blt_alpha
|
|
|
|
|
buf2d_curve_bezier dd sz_buf2d_curve_bezier
|
|
|
|
|
buf2d_convert_text_matrix dd sz_buf2d_convert_text_matrix
|
|
|
|
|
buf2d_draw_text dd sz_buf2d_draw_text
|
|
|
|
|
buf2d_crop_color dd sz_buf2d_crop_color
|
|
|
|
|
buf2d_offset_h dd sz_buf2d_offset_h
|
|
|
|
|
buf2d_flood_fill dd sz_buf2d_flood_fill
|
|
|
|
|
buf2d_set_pixel dd sz_buf2d_set_pixel
|
|
|
|
|
dd 0,0
|
|
|
|
|
sz_init0 db 'lib_init',0
|
|
|
|
|
sz_buf2d_create db 'buf2d_create',0
|
|
|
|
|
sz_buf2d_create_f_img db 'buf2d_create_f_img',0
|
|
|
|
|
sz_buf2d_clear db 'buf2d_clear',0
|
|
|
|
|
sz_buf2d_draw db 'buf2d_draw',0
|
|
|
|
|
sz_buf2d_delete db 'buf2d_delete',0
|
2011-08-30 13:10:56 +02:00
|
|
|
|
sz_buf2d_resize db 'buf2d_resize',0
|
2011-08-17 13:18:45 +02:00
|
|
|
|
sz_buf2d_line db 'buf2d_line',0
|
|
|
|
|
sz_buf2d_rect_by_size db 'buf2d_rect_by_size',0
|
|
|
|
|
sz_buf2d_filled_rect_by_size db 'buf2d_filled_rect_by_size',0
|
|
|
|
|
sz_buf2d_circle db 'buf2d_circle',0
|
|
|
|
|
sz_buf2d_img_hdiv2 db 'buf2d_img_hdiv2',0
|
|
|
|
|
sz_buf2d_img_wdiv2 db 'buf2d_img_wdiv2',0
|
|
|
|
|
sz_buf2d_conv_24_to_8 db 'buf2d_conv_24_to_8',0
|
|
|
|
|
sz_buf2d_conv_24_to_32 db 'buf2d_conv_24_to_32',0
|
|
|
|
|
sz_buf2d_bit_blt db 'buf2d_bit_blt',0
|
|
|
|
|
sz_buf2d_bit_blt_transp db 'buf2d_bit_blt_transp',0
|
|
|
|
|
sz_buf2d_bit_blt_alpha db 'buf2d_bit_blt_alpha',0
|
|
|
|
|
sz_buf2d_curve_bezier db 'buf2d_curve_bezier',0
|
|
|
|
|
sz_buf2d_convert_text_matrix db 'buf2d_convert_text_matrix',0
|
|
|
|
|
sz_buf2d_draw_text db 'buf2d_draw_text',0
|
|
|
|
|
sz_buf2d_crop_color db 'buf2d_crop_color',0
|
|
|
|
|
sz_buf2d_offset_h db 'buf2d_offset_h',0
|
|
|
|
|
sz_buf2d_flood_fill db 'buf2d_flood_fill',0
|
|
|
|
|
sz_buf2d_set_pixel db 'buf2d_set_pixel',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_box_lib:
|
|
|
|
|
dd sz_init1
|
|
|
|
|
init_checkbox dd sz_init_checkbox
|
|
|
|
|
check_box_draw dd sz_check_box_draw
|
|
|
|
|
edit_box_draw dd sz_edit_box_draw
|
|
|
|
|
edit_box_key dd sz_edit_box_key
|
|
|
|
|
edit_box_mouse dd sz_edit_box_mouse
|
|
|
|
|
edit_box_set_text dd sz_edit_box_set_text
|
|
|
|
|
scrollbar_ver_draw dd sz_scrollbar_ver_draw
|
|
|
|
|
scrollbar_hor_draw dd sz_scrollbar_hor_draw
|
|
|
|
|
|
|
|
|
|
tl_data_init dd sz_tl_data_init
|
|
|
|
|
tl_data_clear dd sz_tl_data_clear
|
|
|
|
|
tl_info_clear dd sz_tl_info_clear
|
|
|
|
|
tl_key dd sz_tl_key
|
|
|
|
|
tl_mouse dd sz_tl_mouse
|
|
|
|
|
tl_draw dd sz_tl_draw
|
|
|
|
|
tl_info_undo dd sz_tl_info_undo
|
|
|
|
|
tl_info_redo dd sz_tl_info_redo
|
|
|
|
|
tl_node_add dd sz_tl_node_add
|
|
|
|
|
tl_node_set_data dd sz_tl_node_set_data
|
|
|
|
|
tl_node_get_data dd sz_tl_node_get_data
|
|
|
|
|
tl_node_delete dd sz_tl_node_delete
|
|
|
|
|
tl_node_move_up dd sz_tl_node_move_up
|
|
|
|
|
tl_node_move_down dd sz_tl_node_move_down
|
|
|
|
|
tl_cur_beg dd sz_tl_cur_beg
|
|
|
|
|
tl_cur_next dd sz_tl_cur_next
|
|
|
|
|
tl_cur_perv dd sz_tl_cur_perv
|
|
|
|
|
tl_node_close_open dd sz_tl_node_close_open
|
|
|
|
|
tl_node_lev_inc dd sz_tl_node_lev_inc
|
|
|
|
|
tl_node_lev_dec dd sz_tl_node_lev_dec
|
|
|
|
|
tl_node_poi_get_info dd sz_tl_node_poi_get_info
|
|
|
|
|
tl_node_poi_get_next_info dd sz_tl_node_poi_get_next_info
|
|
|
|
|
tl_node_poi_get_data dd sz_tl_node_poi_get_data
|
|
|
|
|
|
|
|
|
|
dd 0,0
|
|
|
|
|
sz_init1 db 'lib_init',0
|
|
|
|
|
sz_init_checkbox db 'init_checkbox2',0
|
|
|
|
|
sz_check_box_draw db 'check_box_draw2',0
|
|
|
|
|
sz_edit_box_draw db 'edit_box',0
|
|
|
|
|
sz_edit_box_key db 'edit_box_key',0
|
|
|
|
|
sz_edit_box_mouse db 'edit_box_mouse',0
|
|
|
|
|
sz_edit_box_set_text db 'edit_box_set_text',0
|
|
|
|
|
sz_scrollbar_ver_draw db 'scrollbar_v_draw',0
|
|
|
|
|
sz_scrollbar_hor_draw db 'scrollbar_h_draw',0
|
|
|
|
|
|
|
|
|
|
sz_tl_data_init db 'tl_data_init',0
|
|
|
|
|
sz_tl_data_clear db 'tl_data_clear',0
|
|
|
|
|
sz_tl_info_clear db 'tl_info_clear',0
|
|
|
|
|
sz_tl_key db 'tl_key',0
|
|
|
|
|
sz_tl_mouse db 'tl_mouse',0
|
|
|
|
|
sz_tl_draw db 'tl_draw',0
|
|
|
|
|
sz_tl_info_undo db 'tl_info_undo',0
|
|
|
|
|
sz_tl_info_redo db 'tl_info_redo',0
|
|
|
|
|
sz_tl_node_add db 'tl_node_add',0
|
|
|
|
|
sz_tl_node_set_data db 'tl_node_set_data',0
|
|
|
|
|
sz_tl_node_get_data db 'tl_node_get_data',0
|
|
|
|
|
sz_tl_node_delete db 'tl_node_delete',0
|
|
|
|
|
sz_tl_node_move_up db 'tl_node_move_up',0
|
|
|
|
|
sz_tl_node_move_down db 'tl_node_move_down',0
|
|
|
|
|
sz_tl_cur_beg db 'tl_cur_beg',0
|
|
|
|
|
sz_tl_cur_next db 'tl_cur_next',0
|
|
|
|
|
sz_tl_cur_perv db 'tl_cur_perv',0
|
|
|
|
|
sz_tl_node_close_open db 'tl_node_close_open',0
|
|
|
|
|
sz_tl_node_lev_inc db 'tl_node_lev_inc',0
|
|
|
|
|
sz_tl_node_lev_dec db 'tl_node_lev_dec',0
|
|
|
|
|
sz_tl_node_poi_get_info db 'tl_node_poi_get_info',0
|
|
|
|
|
sz_tl_node_poi_get_next_info db 'tl_node_poi_get_next_info',0
|
|
|
|
|
sz_tl_node_poi_get_data db 'tl_node_poi_get_data',0
|
|
|
|
|
|
2015-11-24 15:55:05 +01:00
|
|
|
|
align 4
|
|
|
|
|
import_libkmenu:
|
|
|
|
|
kmenu_init dd akmenu_init
|
|
|
|
|
kmainmenu_draw dd akmainmenu_draw
|
|
|
|
|
kmainmenu_dispatch_cursorevent dd akmainmenu_dispatch_cursorevent
|
|
|
|
|
ksubmenu_new dd aksubmenu_new
|
|
|
|
|
ksubmenu_delete dd aksubmenu_delete
|
|
|
|
|
ksubmenu_draw dd aksubmenu_draw
|
|
|
|
|
ksubmenu_add dd aksubmenu_add
|
|
|
|
|
kmenuitem_new dd akmenuitem_new
|
|
|
|
|
kmenuitem_delete dd akmenuitem_delete
|
|
|
|
|
kmenuitem_draw dd akmenuitem_draw
|
|
|
|
|
dd 0,0
|
|
|
|
|
akmenu_init db 'kmenu_init',0
|
|
|
|
|
akmainmenu_draw db 'kmainmenu_draw',0
|
|
|
|
|
akmainmenu_dispatch_cursorevent db 'kmainmenu_dispatch_cursorevent',0
|
|
|
|
|
aksubmenu_new db 'ksubmenu_new',0
|
|
|
|
|
aksubmenu_delete db 'ksubmenu_delete',0
|
|
|
|
|
aksubmenu_draw db 'ksubmenu_draw',0
|
|
|
|
|
aksubmenu_add db 'ksubmenu_add',0
|
|
|
|
|
akmenuitem_new db 'kmenuitem_new',0
|
|
|
|
|
akmenuitem_delete db 'kmenuitem_delete',0
|
|
|
|
|
akmenuitem_draw db 'kmenuitem_draw',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_lib_tinygl:
|
|
|
|
|
macro E_LIB n
|
|
|
|
|
{
|
|
|
|
|
n dd sz_#n
|
|
|
|
|
}
|
|
|
|
|
include '../../develop/libraries/TinyGL/asm_fork/export.inc'
|
|
|
|
|
dd 0,0
|
|
|
|
|
macro E_LIB n
|
|
|
|
|
{
|
|
|
|
|
sz_#n db `n,0
|
|
|
|
|
}
|
|
|
|
|
include '../../develop/libraries/TinyGL/asm_fork/export.inc'
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
align 4
|
2011-08-17 13:18:45 +02:00
|
|
|
|
mouse_dd dd 0x0
|
|
|
|
|
last_time dd 0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
buf_0: dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2011-08-30 13:10:56 +02:00
|
|
|
|
.l: dw 205 ;+4 left
|
2011-09-12 13:00:48 +02:00
|
|
|
|
.t: dw 35 ;+6 top
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.w: dd 340 ;+8 w
|
2015-11-24 15:55:05 +01:00
|
|
|
|
.h: dd main_wnd_height-65 ;+12 h
|
2011-08-17 13:18:45 +02:00
|
|
|
|
.color: dd 0xffffd0 ;+16 color
|
|
|
|
|
db 24 ;+20 bit in pixel
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
buf_1:
|
|
|
|
|
dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
dw 25,25 ;+4 left,top
|
|
|
|
|
dd 128,144 ;+8 w,h
|
|
|
|
|
dd 0,24 ;+16 color,bit in pixel
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
align 4
|
2011-08-17 13:18:45 +02:00
|
|
|
|
el_focus dd tree1
|
2013-12-06 13:07:49 +01:00
|
|
|
|
tree1 tree_list size_one_list,300+2, tl_key_no_edit+tl_draw_par_line,\
|
2015-11-24 15:55:05 +01:00
|
|
|
|
16,16, 0xffffff,0xb0d0ff,0x400040, 5,35,195-16,250, 16,list_offs_text,0, el_focus,\
|
2011-08-17 13:18:45 +02:00
|
|
|
|
w_scr_t1,0
|
|
|
|
|
|
|
|
|
|
align 4
|
2015-11-24 15:55:05 +01:00
|
|
|
|
w_scr_t1 scrollbar 16,0, 3,0, 15, 100, 0,0, 0,0,0, 1
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
ctx1 db 28 dup (0) ;TinyGLContext or KOSGLContext
|
|
|
|
|
;sizeof.TinyGLContext = 28
|
|
|
|
|
|
|
|
|
|
qObj dd 0
|
|
|
|
|
angle_x dd 0.0
|
|
|
|
|
angle_y dd 0.0
|
|
|
|
|
angle_z dd 0.0
|
|
|
|
|
delt_size dd 3.0
|
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
light_position dd 0.0, 0.0, -2.0, 1.0 ; <20><>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>筨<EFBFBD><E7ADA8> [0][1][2]
|
2015-11-24 15:55:05 +01:00
|
|
|
|
;[3] = (0.0 - <20><><EFBFBD><E1AAAE>筮 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>筨<EFBFBD>, 1.0 - <20><><EFBFBD><EFBFBD>筨<EFBFBD> ᢥ<><E1A2A5> <20><> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD>)
|
|
|
|
|
light_dir dd 0.0,0.0,0.0 ;<3B><><EFBFBD>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
mat_specular dd 0.3, 0.3, 0.3, 1.0 ; <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mat_shininess dd 3.0 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD>⭠<EFBFBD> <20>ய<EFBFBD><E0AEAF><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
white_light dd 0.8, 0.8, 0.8, 1.0 ; <20><><EFBFBD><EFBFBD> <20> <20><>⥭ᨢ<E2A5AD><E1A8A2><EFBFBD><EFBFBD><EFBFBD> <20>ᢥ饭<E1A2A5><E9A5AD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㥬<EFBFBD><E3A5AC><EFBFBD> <20><><EFBFBD><EFBFBD>筨<EFBFBD><E7ADA8><EFBFBD>
|
|
|
|
|
lmodel_ambient dd 0.3, 0.3, 0.3, 1.0 ; <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD> 䮭<><E4AEAD><EFBFBD><EFBFBD><EFBFBD> <20>ᢥ饭<E1A2A5><E9A5AD>
|
2011-08-17 13:18:45 +02:00
|
|
|
|
|
2015-11-11 00:11:17 +01:00
|
|
|
|
align 16
|
2011-08-17 13:18:45 +02:00
|
|
|
|
i_end:
|
2015-11-11 00:11:17 +01:00
|
|
|
|
procinfo process_information
|
2015-11-26 15:58:32 +01:00
|
|
|
|
sc system_colors
|
2015-11-24 15:55:05 +01:00
|
|
|
|
rb 2048
|
|
|
|
|
align 16
|
2011-09-09 22:55:11 +02:00
|
|
|
|
thread_coords:
|
2015-11-24 15:55:05 +01:00
|
|
|
|
rb 2048
|
2011-08-17 13:18:45 +02:00
|
|
|
|
stacktop:
|
2015-11-24 15:55:05 +01:00
|
|
|
|
sys_path rb 2048
|
|
|
|
|
file_name rb 4096
|
|
|
|
|
library_path rb 2048
|
2011-08-17 13:18:45 +02:00
|
|
|
|
plugin_path rb 4096
|
|
|
|
|
openfile_path rb 4096
|
|
|
|
|
filename_area rb 256
|
|
|
|
|
mem:
|