User:32th System/Seihou 1 thcrap support progress

File breakpoints
At  the function that I will call   is located. It takes a pointer to a structure of which the first member is the FILE* stream for the archive file to use as the first parameter and the file ID as the second parameter. (file names don't exist in SG archives, you can only determine the type of file by header). The way a file stream can be mapped to a file name is by injecting code into  that stores the   stream return value at a location thcrap can easily access.

In this function, at  the size of the file to load is passed to.

calls the function I will call. It will load a file into a buffer specified by the first parameter

This is all that is needed to implement file replacement