
Installing CPKREDIR requires that the user apply a patch (included in the download) to their Sonic Generations executable so that CPKREDIR's DLL replaces all references to imagehlp.dll, which was an ideal candidate to be CPKREDIR's trojan horse because the game only imports a single function from it. Classic Sonic in Wave Ocean as shown on Melpontro's YouTube channel. This makes it possible to have the game load modified data files, without the need for unpacking and repacking those large CPK archives every time.ĬPKREDIR also, by virtue of allowing the user to choose which external files are loaded when Generations requests resources of different types, allows the user to combine different modifications. It is recommended that you have a folder containing clean versions of the files in the CPK archive, so that you do not have to unpack every single time you want to revert a file back to its original state.ĬPKREDIR by Korama, a Tech Member of Sonic Retro, is a DLL that intercepts attempts by Sonic Generations to read files within a CPK archive it then redirects the calls and instead returns the requested data from external files specified by the user. QuickBMS is used to extract CPK files (*.cpk) from the disk and sound folders of Sonic Generations', with the help of this script (right click and choose Save as).
