ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax
It is currently Sat Aug 13, 2022 3:04 am

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 10, 2022 1:20 pm 
User avatar

Joined: Thu Mar 10, 2022 1:10 pm
Posts: 4
how come lots of file formats include the size of the file inside the file? why not just seek to the end and ftell()? it seems like a waste of bytes


Top
   
PostPosted: Thu Mar 10, 2022 1:33 pm 
User avatar

Joined: Tue Jan 18, 2022 12:21 am
Posts: 160
garan wrote:
how come lots of file formats include the size of the file inside the file? why not just seek to the end and ftell()? it seems like a waste of bytes

Because games works with TOC/LBA.
it cannot just seektoend because the game works with many files with in loadeded into ram and need pointers because its not an individual file.
So generally have a table pointing the files begin and end.
or some kind of math to do the same job.

I strongly suggest you read some document of asmromhacking.
Because its seems you are very newbie in this subject.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited