1. Unpack the files (duh!)
2. Set all attributes to -R -H (remove readonly & hidden file attributes), this is to make files uniform...with these attributes removed
3. Set all file dates to a specific date, in this case 2000.01.01
4. GAME IS STARTED/CONFIGURED
5. when DOSBox closes the script will scan the folder for new or changed files (not equal to this date: 2000.01.01) and compresses these into a ZIP file with the game CRC32, like 5F8SDE4F.ZIP
now we have "catched" the saved files, the next time the game is started:
1. unpack the files...
2. check for CRC32 ZIP file with changed files....if exist then uncompress in game folder...
3. start game...
4. compress changed files again...
this is step 2 & 3:
(placed underneath the section UNZIP GAMEDATA)
Code: Select all
; === SETTING FILE ATTRIBUTES ===
ToolTip("Setting attributes...", $ClientRes[0]/2, $ClientRes[1]/2, "ECC DOSBox", 1, 2)
FileSetAttrib($GameOutputFolder & "\*.*", "-RH", 1)
FileSetTime($GameOutputFolder & "\*.*", "20000101", 0, 1)
ToolTip("")