View Full Version : Change Loading from File to Loading from Folder ?

May 26th, 2007, 10:04
Hello everyboy

I want to change the loading data from file to loading data from folder for exemple:

Original: Data\Data.dat to Data\Data.dat\

I found out that procedure which loads the file Data.dat into memory,in that procedure there is APIs: FindFistFileA,FindNextFileA and FindClose.
If file Data.dat is not found,then bad MessageBox appears.

I already extracted file Data.dat and now I want to load that unpacked files from folder and not from single file,its possible ?

Any tips or tricks please how to remake that procedure ?

Thank you in advance.

May 26th, 2007, 11:58
See below.

May 26th, 2007, 14:59
I get what you're saying. Instead of it loading data.dat, you want it to load the constituent files that used to be compressed, and encrypted INTO data.dat.

Assuming that's what you mean, you'll have to replace the single "file load" function, with multiple, 1 for each file, and you'll have to reverse the proper addresses for which to load them. (I'm assuming that you could get this from watching the app post processing on data.dat).

You'll probably have to remove the initial load function, along with the unpacking functions and use that space for your new loading routine.

Doable, but a slight pain in the ass.

May 27th, 2007, 22:45
or ...

you write your own data.dat compiler?

regards, 0xf001

May 28th, 2007, 03:09
Dis! Rotflmao. Awesome bunny.