G
Goku7
Guest
Forgive me if I've already mentioned this before, but I believe I have finally hit upon the best solution to fix the current problem our FF8config program has with ffaddon files that are compressed using WinRAR 3.0 and above, without needing to update the actual RAR compression code currently used in the config program.....or constantly falling back to older versions of WinRAR for making compatible files.
As far as I know, the current version of the FF9 mod (version 2.1 for Samuel's DLS) on the FFSF site is the only one suffering from the problem. Specific information on the problem was posted several months ago by me in this thread, for those of you who don't know what happened.
My solution is this: we don't necessarily have to code the actual algorithim into the config -- Why not recode the program to instead use self-extracting rar files as the .ffaddon format, and have the program make calls to run the exe part of the self-extracting file?
In theory, this would eliminate the need to update the program to deal with the newer algorithms, because the self-extractor would already have the newer code in it. It would allow the config program to install ffaddon files regardless of what version of WinRAR made it, and should be forward-compatible for some time.
Of course, we wouldn't want the config to simply check to see if the file is an executable and blindly run it :roll:. Now, I'm guessing that self-extracting archives (both of the .zip and .rar formats) contain some information in the file header that identify the program as a self-extracting archive. Assuming I'm right, we could then have the program read the file header, and if it does not indicate that it is a .rar self-extracting archive, then return an error saying it is not an .ffaddon file, or a corrupt one.
So, coders, what do you think? Fice? Dag? Anyone with delphi experience?
As far as I know, the current version of the FF9 mod (version 2.1 for Samuel's DLS) on the FFSF site is the only one suffering from the problem. Specific information on the problem was posted several months ago by me in this thread, for those of you who don't know what happened.
My solution is this: we don't necessarily have to code the actual algorithim into the config -- Why not recode the program to instead use self-extracting rar files as the .ffaddon format, and have the program make calls to run the exe part of the self-extracting file?
In theory, this would eliminate the need to update the program to deal with the newer algorithms, because the self-extractor would already have the newer code in it. It would allow the config program to install ffaddon files regardless of what version of WinRAR made it, and should be forward-compatible for some time.
Of course, we wouldn't want the config to simply check to see if the file is an executable and blindly run it :roll:. Now, I'm guessing that self-extracting archives (both of the .zip and .rar formats) contain some information in the file header that identify the program as a self-extracting archive. Assuming I'm right, we could then have the program read the file header, and if it does not indicate that it is a .rar self-extracting archive, then return an error saying it is not an .ffaddon file, or a corrupt one.
So, coders, what do you think? Fice? Dag? Anyone with delphi experience?