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

HLE: clear lower bits of Free Disk Space value #15313

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Mar 12, 2024

Seems to fix the loading of Fuel Overdose Demo.

@@ -421,7 +421,7 @@ error_code cellHddGameCheck(ppu_thread& ppu, u32 version, vm::cptr<char> dirName
// 40 GB - 1 kilobyte. The reasoning is that many games take this number and multiply it by 1024, to get the amount of bytes. With 40GB exactly,
// this will result in an overflow, and the size would be 0, preventing the game from running. By reducing 1 kilobyte, we make sure that even
// after said overflow, the number would still be high enough to contain the game's data.
get->hddFreeSizeKB = 40 * 1024 * 1024 - 1;
get->hddFreeSizeKB = 40 * 1024 * 1024 - 256;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above should be updated. Also would be nice if this same copy paste could be merged into one variable/function.

@Megamouse
Copy link
Contributor

The comment is wrong

@Megamouse
Copy link
Contributor

NANI. Nevermind

@Megamouse Megamouse merged commit 40adf4b into RPCS3:master Mar 14, 2024
6 checks passed
@elad335 elad335 deleted the fuel branch March 17, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants