Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super Bikes HD patch #279

Open
scooby911 opened this issue Mar 17, 2024 · 2 comments
Open

Super Bikes HD patch #279

scooby911 opened this issue Mar 17, 2024 · 2 comments

Comments

@scooby911
Copy link

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
Copy link
Author

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
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant