dolphin/Source/Core
JosJuice 75d032161f DiscIO: Rework the implementation of TGC reading
Fixes https://bugs.dolphin-emu.org/issues/10654.

To quote the documenation file included with the program tgctogcm:

"TGC's are miniaturized .gcm images with a 32kB header.
The embedded gcm contains some bogus data, namely:
-FST Location (0x424 in gcm)
-DOL Location (0x420 in gcm)
-FST File offsets (all files are offset/spoofed by a certain amount)"

Dolphin has been handling the values at 0x420 and 0x424 by simply
overwriting them with a working value (just like tgctogcm does),
but it has used a different approach for the file offsets in the FST.
Instead of changing the offsets that are stored in the FST, Dolphin
changed where the files actually are placed on the virtual disc.
My hope was that this would make the loading times more accurate to
how they are when running a TGC file as part of a larger disc.
However, there are TGC files where we would need to move files
backwards on the disc in order to do this (this is what issue
10654 is about), so the approach we have been using is flawed.

This change makes Dolphin overwrite offsets in the FST instead, like
tgctogcm does. Other than making Dolphin handle the affected TGC files
correctly, this change also makes it so that unnecessary padding data
isn't written if you use Dolphin to convert a TGC file to an ISO file.
This feature is not actually implemented in Dolphin as of now, but I'm
planning to add it in the near future as part of a larger feature.
2020-06-17 12:32:39 +02:00
..
AudioCommon Externals: Fix OpenAL include directory. 2020-04-29 13:07:51 +02:00
Common Merge pull request #8809 from Ebola16/ABB 2020-06-14 14:30:52 +01:00
Core GCMemcard: Move from global namespace into a Memcard namespace. 2020-06-16 20:18:39 +02:00
DiscIO DiscIO: Rework the implementation of TGC reading 2020-06-17 12:32:39 +02:00
DolphinNoGUI Core: Add support for specifying a command line option to boot the game into a save-state 2020-05-06 22:10:30 -05:00
DolphinQt Merge pull request #8873 from AdmiralCurtiss/gcmemcard-namespace 2020-06-16 19:55:06 +01:00
InputCommon Merge pull request #8795 from WamWooWam/master 2020-05-10 19:16:15 +10:00
MacUpdater Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
UICommon Migrate video backend setting to the new config system 2020-05-22 16:54:53 +02:00
UpdaterCommon Fix windows build system. 2020-04-29 12:56:52 +02:00
VideoBackends Externals: Fix build failures with the newer glslang. 2020-05-30 18:54:21 -07:00
VideoCommon Merge pull request #8827 from stenzek/adreno-more-like-brokenreno 2020-05-28 16:55:42 +10:00
WinUpdater Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
CMakeLists.txt WinUpdater: Add CMakeLists.txt 2019-05-08 23:59:04 +02:00