teknogods / OpenParrot

Open Source version of TeknoParrot by NTA, avail and Reaver
GNU General Public License v3.0
229 stars 47 forks source link

Super Bikes HD patch #279

Open scooby911 opened 3 months ago

scooby911 commented 3 months ago

It seems that the HD patch for Super Bikes is not applied to the exe commonly used for this game. The CRC of the game that everybody has access to is 25ED956B. In TP UI, it seems that the HD patch is applied to the exe with the CRC BE32DACD. (In FNF, the HD patch works correctly on the available dump). EmiMidnight, can you have a look please. Thank you in advance.

scooby911 commented 3 months ago

By looking at the source code, the problem seems not related to the CRC exe that is used. There is a comment in the source: "// BROKEN RESOLUTION PATCH WHEN FULLSCREEN" But even in windowed mode, the patch is not applied. Anyone, has success with this option?

scooby911 commented 2 months ago

@Pocky

From the code for the FNF game, it seems that part of the code to calculate the window size is missing for Super Bikes.

dwStyle = WS_OVERLAPPEDWINDOW | WS_VISIBLE;

if (!ToBool(config["General"]["HDPatch"]))
{
    nWidth = 640;
    nHeight = 480;
}

std::tie(nWidth, nHeight) = CalculateWindowSize(nWidth, nHeight, dwStyle, dwExStyle);
std::tie(X, Y) = CalculateWindowCenterPosition(nWidth, nHeight);

It would be nice if you can have a look. Thanks in advance.