Quote:
Originally Posted by Sm•ke
oh yeah, just decompiler.. and now who doing the encryption + packer ? :)
i've packer, now i work on encrypt ^^
|
Ouch, yes, hard as hell done compress eh? :I
Code:
if(this->FileSaveDialog1->Execute())
{
this->Memo2->Lines->Add("Starting repack the file...");
FILE *file;
file =fopen(AnsiString(this->FileSaveDialog1->FileName).c_str(),"wb");
if(file != NULL)
{
fwrite(&file_amount,1,4,file);
for(int i = 0; i < file_amount; i++)
{
fwrite(&dFile[i].index,1,4,file);
fwrite(&dFile[i].name_size,1,4,file);
fwrite(dFile[i].name,1,dFile[i].name_size,file);
fwrite(&dFile[i].encryption,1,4,file);
fwrite(&dFile[i].f_size,1,4,file);
fwrite(dFile[i].file,1,dFile[i].f_size,file);
this->Memo2->Lines->Add("File [" + UnicodeString(AnsiString(dFile[i].name))+"] added!");
}
fclose(file);
this->Memo2->Lines->Add("File compressed!");
}
else
{
this->Memo2->Lines->Add("I can't save the file...");
}
}