Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5639 → Rev 5640

/programs/cmm/lib/file_system.h
1,11 → 1,8
#ifndef INCLUDE_FILESYSTEM_H
#define INCLUDE_FILESYSTEM_H
#ifndef INCLUDE_KOLIBRI_H
#include "../lib/kolibri.h"
#endif
 
#ifndef INCLUDE_STRING_H
#include "../lib/strings.h"
#ifndef INCLUDE_DATE_H
#include "../lib/date.h"
#endif
 
:struct f70{
18,13 → 15,6
dword name;
};
 
:struct date
{
byte day;
byte month;
word year;
};
 
:struct BDVK {
dword readonly:1, hidden:1, system:1, volume_label:1, isfolder:1, notarchived:1, :0;
byte type_name;
41,30 → 31,9
};
 
 
:void DrawDate(dword x, y, color, in_date)
{
//char text[15];
EDI = in_date;
EAX = 47;
EBX = 2<<16;
EDX = x<<16+y;
ESI = 0x80<<24+color;
ECX = EDI.date.day;
$int 0x40;
EDX += 18<<16;
ECX = EDI.date.month;
$int 0x40;
EDX += 18<<16;
EBX = 4<<16;
ECX = EDI.date.year;
$int 0x40;
PutPixel(x+14,y+6,color);
PutPixel(x+32,y+6,color);
//sprintf(#text,"%d",EDI.date.year);
//WriteText(x, y, 0x80, 0x000000, #text);
}
 
 
 
///////////////////////////
// Ïàðàìåòðû ôàéëà //
///////////////////////////
83,9 → 52,9
$int 0x40
}
 
///////////////////////////
/////////////////////////////////////
// Èçìåíåíèå ïàðàìåòðîâ ôàéëà //
///////////////////////////
/////////////////////////////////////
:f70 setinfo_file_70;
:dword SetFileInfo(dword file_path, bdvk_struct)
{
173,9 → 142,9
$int 0x40
}
 
////////////////////////////
///////////////////////////
// Çàïèñàòü ôàéë //
////////////////////////////
///////////////////////////
:f70 write_file_70;
:int WriteFile(dword write_file_size, write_buffer, write_file_path)
{
191,9 → 160,9
$int 0x40
}
 
//////////////////////////////////////////
////////////////////////////////////////
// WriteInFileThatAlredyExists //
//////////////////////////////////////////
////////////////////////////////////////
:f70 write_file_offset_70;
:int WriteFileWithOffset(dword write_data_size, write_buffer, write_file_path, offset)
{