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

sys: Fix hdd game dir name #14956

Merged
merged 1 commit into from
Dec 29, 2023
Merged

sys: Fix hdd game dir name #14956

merged 1 commit into from
Dec 29, 2023

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Dec 29, 2023

Some games are installed with other dir names than title id.

  • Use the actual directory name instead of clamping it to 9 characters.
  • Pass the actual directory name in cellGameBootCheck.

fixes #14954

@Megamouse Megamouse added the Loader Involving the load of PS3 file formats label Dec 29, 2023
rpcs3/Emu/System.cpp Outdated Show resolved Hide resolved
@elad335 elad335 self-assigned this Dec 29, 2023
@Megamouse Megamouse force-pushed the debug_overlay branch 3 times, most recently from 3710f80 to 36f8f25 Compare December 29, 2023 10:04
@elad335 elad335 removed their assignment Dec 29, 2023
@FlexBy420
Copy link
Contributor

Tested some of the apps and they don't crash anymore
RPCS3.log.gz

Some games are installed with other dir names than title_id
@Megamouse Megamouse merged commit d3298c4 into RPCS3:master Dec 29, 2023
6 checks passed
@Megamouse Megamouse deleted the debug_overlay branch December 29, 2023 17:13
@@ -763,7 +763,8 @@ error_code cellGameBootCheck(vm::ptr<u32> type, vm::ptr<u32> attributes, vm::ptr

if (_type == u32{CELL_GAME_GAMETYPE_HDD} && dirName)
{
strcpy_trunc(*dirName, Emu.GetTitleID());
ensure(dir.size() < CELL_GAME_DIRNAME_SIZE);
Copy link
Contributor

Choose a reason for hiding this comment

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

We may need to demand it when booting games or going through HDD0/game directories when enumerating for game list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no evidence that any game even triggers this ensure.
I refuse to spend even a second on this.
"if it ain't broke, don't fix it"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Loader Involving the load of PS3 file formats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some PS3 apps crash on boot because RPCS3 expects different folder naming
4 participants