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

Fix: Use sce_stat->st_mode in io_to_posix_mode (glue.c) so it can also work for files stored in ISOs #239

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

radusalagean
Copy link
Contributor

Created a PR as suggested by @sharkwouter
Key messages that led to this change which fixed my issue:

  1. Initial issue explained: https://discord.com/channels/479828644970364928/668436284800237694/1298297311235145878

  2. Testing sceIoGetstat directly:
    https://discord.com/channels/479828644970364928/668436284800237694/1298625671383351296
    and
    https://discord.com/channels/479828644970364928/668436284800237694/1298651722356494378

  3. Found a forum post which suggests that using st_attr does not work when checking resources from a UMD, and st_mode should be used instead:
    https://discord.com/channels/479828644970364928/668436284800237694/1298668881333846047

  4. Issue is solved for me with this change from the PR, the SDL project works on both ISO and non-ISO context:
    https://discord.com/channels/479828644970364928/668436284800237694/1298700049257201705

Copy link
Contributor

@bucanero bucanero left a comment

Choose a reason for hiding this comment

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

LGTM
@fjtrujy might have a better overview

Copy link
Member

@sharkwouter sharkwouter left a comment

Choose a reason for hiding this comment

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

So I tested this with OceanPop and I ran the following samples:

  • mp3
  • gu/sprite
  • savedata/utility

They all seemed to work fine.

@fjtrujy
Copy link
Member

fjtrujy commented Oct 23, 2024

Thanks for the PR.
I will try to run some other examples just to be sure.
Thanks!

@fjtrujy fjtrujy merged commit 4a03c90 into pspdev:master Oct 24, 2024
1 check passed
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.

5 participants