PAK app and resource files into Single EXE
Posted: Sun Aug 24, 2003 7:21 am
If anyone is interested in trying an enhanced version of my PureInstall application, I have a beta available...
http://www.reelmediaproductions.com/pur ... stall2.exe
This version allows you to combine many resources into a single PAK file and then attach this PAK file to your EXE creating a single EXE. Files can be encrypted with a key if you want to prevent them from being tampered with.
You can also keep the PAK file external if you wish.
There are 3 commands you can call from your application to access these PAK'd resource files...
PAK_Extract(file,key)
PAK_ExtractAll(key)
PAK_ExtractMemory(file,key)
There are 3 demo examples showing how to use these commands in your program. Demo1 shows how to extract a single graphic file from the EXE and then loa it as a sprite. Demo2 shows how to extract a single graphic file from an external PAK file and load it as a sprite. Demo3 shows how to extract a single graphic from the EXE and Catch it from memory to use as a sprite without having to extract to your hard drive.
This version will stay seperate from the original PureInstall application and is basically for PureBasic users since you must compile your apps using the various PAK commands to access your data in the PAK files.
(sorry, I cannot provide much support for this version since it was basically just to try some ideas I had in my head
)
http://www.reelmediaproductions.com/pur ... stall2.exe
This version allows you to combine many resources into a single PAK file and then attach this PAK file to your EXE creating a single EXE. Files can be encrypted with a key if you want to prevent them from being tampered with.
You can also keep the PAK file external if you wish.
There are 3 commands you can call from your application to access these PAK'd resource files...
PAK_Extract(file,key)
PAK_ExtractAll(key)
PAK_ExtractMemory(file,key)
There are 3 demo examples showing how to use these commands in your program. Demo1 shows how to extract a single graphic file from the EXE and then loa it as a sprite. Demo2 shows how to extract a single graphic file from an external PAK file and load it as a sprite. Demo3 shows how to extract a single graphic from the EXE and Catch it from memory to use as a sprite without having to extract to your hard drive.
This version will stay seperate from the original PureInstall application and is basically for PureBasic users since you must compile your apps using the various PAK commands to access your data in the PAK files.
(sorry, I cannot provide much support for this version since it was basically just to try some ideas I had in my head