Rev 6328 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
255 | heavyiron | 1 | ;----------------------------------------------------------- |
2 | ;---------------save in file from memory-------------------- |
||
3 | ;----------------------------------------------------------- |
||
4 | save_file: |
||
5 | mov [size_to_save],ecx |
||
6 | mov [pointer_to_data],ebx |
||
7 | mov [full_file_path],eax |
||
8 | |||
9 | mov esi,[full_file_path] |
||
10 | mov edi,filepath |
||
11 | mov ecx,256 |
||
12 | rep movsd |
||
13 | |||
14 | xor eax,eax |
||
15 | mov ebx,[size_to_save] |
||
16 | mov ecx,[pointer_to_data] |
||
17 | mov edx,filepath |
||
18 | |||
6341 | IgorA | 19 | mov dword[file_information],SSF_CREATE_FILE |
255 | heavyiron | 20 | mov [file_information+4],eax |
21 | mov [file_information+8],eax |
||
22 | mov [file_information+12],ebx |
||
23 | mov [file_information+16],ecx |
||
24 | mov [file_information+20],al |
||
25 | mov [file_information+21],edx |
||
26 | |||
6341 | IgorA | 27 | mcall SF_FILE,file_information |
255 | heavyiron | 28 | |
6341 | IgorA | 29 | ret |
255 | heavyiron | 30 | |
31 | ;---------------------------------------------------------- |
||
32 | ;-------------file information structure------------------- |
||
33 | ;---------------------------------------------------------- |
||
34 | |||
6328 | IgorA | 35 | file_information FileInfoBlock 5,0,0,0,bufer_for_info,0,filepath |
255 | heavyiron | 36 | |
37 | filepath rb 1040 |
||
38 | |||
39 | bufer_for_info rd 10 |
||
40 | full_file_path dd 0 |
||
41 | where_load_file dd 0 |
||
42 | size_to_save dd 0 |
||
43 | pointer_to_data dd 0 |