Hello, i am currently working on custom format for resource packs for game. The packs contains assests, which are compressed. Currently i am facing the problem that if the assets outside the pack and inside it are the same, then the pack should not be rebuit.
The easiest solution that i could think of is to save the timestamps of the files (last write) inside the pack. When starting to build the pack, the last write time of each file will be compared with the timestamp in the pack and it will be determined if there is change in atleast one file. Then if there is, the pack is rebuilt.
Is there a better solution of the problem?