Jump to content

Z64-Free : Automated Space Locator


Jason777
 Share

Recommended Posts

I noticed that, while very simple to make, the community was lacking something that could automatically locate free space. I had already done this with ZAO-ADD, but I was getting annoyed with running through the entire program just so I could see where the next occurrence of free space lay. I took the code directly out of ZAO-ADD this morning and made it its own program:

rkuh.jpg

(v1.0) Download: http://www.mediafire.com/download/0szp3f8xhr1ymuf/Z64-Free.exe
(v1.0) Source: http://www.mediafire.com/download/sxb2ht36fb3jj0g/z64-free_src.zip

  • Like 2
Link to comment
Share on other sites

Since it doesn't accept any other arguments than the ROM file, the program only checks for the absolute highest ending offset. Maybe I could add in an "advanced" option in which the user supplies the absolute minimum amount of space needed for a potential injection and then I could try out a type of "squeeze" algorithm I'm in the middle of making.

 

Currently, the algorithm I'm talking about has a Big-O of O(n^2)... which isn't all that efficient. Then again, it's a small program so efficiency isn't all that relevant. Ideally, the algorithm should be O(log(n)), but a lot of people (myself included) do not care about the order in which files appear in the ROM.

 

Also, the source (C++) is up for download if you want to know exactly what goes on.

  • Like 1
Link to comment
Share on other sites

Isn't there filler data in the debug rom? You should also enable it to automatically replace all of that data into zero's and count it as free space once the program is used on the rom for the first time.. or something like that, like the program saves the rom name as a file so it realizes it's been used on the rom before. Also making the program check to see if the filler data has been tampered with by whoever before the program has had the chance to even make the filler into free space. If it's not too much, though this is already a respectable program!

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.