I have files for a mod for a game. This mod requires some music files to be present twice in different folders. Given that the music is the same in both folders, is there a way to zip the files once, then change the table of content and reference to the other copy, such that if I extract the zip file, it extracts the files twice, but they are actually just once in the zip?
Similar as to creating an ISO with a modified TOC (though I don't know how to do that either)
An example of what the zip would have:
mod.zip
\music\set_a\tune1.mp3
\music\set_a\tune2.mp3
\music\set_a\tune3.mp3
\music\set_a\tune4.mp3
\music\set_a\tune5.mp3
\music\set_a\tune6.mp3
\music\set_b\tune1.mp3
\music\set_b\tune2.mp3
\music\set_b\tune3.mp3
\music\set_b\tune4.mp3
\music\set_b\tune5.mp3
\music\set_b\tune6.mp3
\graphics\set_a\img1.png
\graphics\set_a\img2.png
\graphics\set_b\img1.png
\graphics\set_b\img2.png
Imagine that the tunes for set_a and set_b are identical, the graphics for set_a and set_b are not.
In an ideal world, I would replace all mp3 files in set_b with 0 length files, then after I created the zip file, I would alter the index and make it refer to the set_a data, so that upon extracting, it creates music\set_b\tune1.mp3, but uses the data of music\set_a.
Is that possible? If not, any other easy way to create something similar?