99,7 → 99,7 |
:int GetFile(dword buf, filesize, read_path) |
{ |
BDVK ReadFile_atr; |
dword rBuf=0; |
dword rBuf; |
if (! GetFileInfo(read_path, #ReadFile_atr)) |
{ |
rBuf = malloc(ReadFile_atr.sizelo); |
114,6 → 114,7 |
return 0; |
} |
|
|
//////////////////////////// |
// Çàïèñàòü ôàéë // |
//////////////////////////// |
203,11 → 204,9 |
if (! ReadFile(0, CopyFile_atr.sizelo, cBufer, copy_from)) |
{ |
rezult = WriteFile(CopyFile_atr.sizelo, cBufer, copy_in); |
debugi(rezult); |
} |
} |
free(cBufer); |
debugi(rezult); |
return rezult; |
} |
|
229,3 → 228,12 |
{ |
RunProgram("@notify", notify_param); |
} |
|
:dword abspath(dword relative_path) //GetAbsolutePathFromRelative() |
{ |
char absolute_path[4096]; |
strcpy(#absolute_path, #program_path); |
absolute_path[strrchr(#absolute_path, '/')] = '\0'; |
strcat(#absolute_path, relative_path); |
return #absolute_path; |
} |