DVD file overlay support#190
Conversation
Fixes encounter#163 Basically allows games to "overlay" a set of file paths over the DVD. These are provided as a flat list of absolute paths, and when an overlayed file is read, the game gets the ability to provide its own read/seek callbacks. The current implementation rebuilds the FST. This means EntryNums will not be consistent with the original disc, but it does avoid rewriting a significant chunk of the existing DVD code that relies on the FST.
|
I think an option to recalculate entry nums would be important for some games (Mario Party 4 for example needs this in my testing as it has hardcoded entry num loading) but I am not sure if order is consistent between games. For that game, it is ordered as lowercase alphabetically, Maybe an optional callback to calculate these would be fine. In my testing, the first file would not load. |
I'll just rewrite the branch to keep the original game entrynums in place. That'll mean that added files won't have logical entry nums but I really doubt games care about that. |
Game now assigns entrynums for added files, and original disc entrynums are preserved.
Fixes #163
Basically allows games to "overlay" a set of file paths over the DVD. These are provided as a flat list of absolute paths, and when an overlayed file is read, the game gets the ability to provide its own read/seek callbacks.
The current implementation rebuilds the FST. This means EntryNums will not be consistent with the original disc, but it does avoid rewriting a significant chunk of the existing DVD code that relies on the FST.