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

also check errno when lseek64 returns -1 #117

Merged
merged 1 commit into from
Oct 3, 2023
Merged

also check errno when lseek64 returns -1 #117

merged 1 commit into from
Oct 3, 2023

Conversation

karas84
Copy link
Contributor

@karas84 karas84 commented Oct 2, 2023

Pull Request checklist

Note: these are not necessarily requirements

  • I reformatted the code with clang-format
  • I checked to make sure my submission worked
  • I am the author of submission or have permission from the original author
  • Requires update of the PS2SDK or other dependencies
  • Others (please specify below)

Pull Request description

in genLseek the return value of lseek64 is checked against the error value -48 but it should also check against the -1 return code and the value 48 in errno. This fixes #116 allowing PS2 games to boot using PS2Disc.

@AKuHAK AKuHAK merged commit 0a554e8 into ps2homebrew:master Oct 3, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

[ISSUE]: Commit 0156510d00858f784322248cf90f3aaf863240f4 breaks PS2Disk (and probably other functions)
2 participants