Jason777 Posted December 11, 2013 Share Posted December 11, 2013 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:(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 2 Link to comment Share on other sites More sharing options...
haddockd Posted December 11, 2013 Share Posted December 11, 2013 Its funny how something so basic wasnt created sooner. Thanks Jason777! Link to comment Share on other sites More sharing options...
Mallos31 Posted December 11, 2013 Share Posted December 11, 2013 Does it do it based on needed space, or does it just find the next empty space? Link to comment Share on other sites More sharing options...
Jason777 Posted December 11, 2013 Author Share Posted December 11, 2013 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. 1 Link to comment Share on other sites More sharing options...
HeavyZ Posted December 12, 2013 Share Posted December 12, 2013 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 More sharing options...
Recommended Posts