mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #2370] [MERGED] lseek: let the host OS set lseek errors #2682
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2682
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2370
Author: @mailwl
Created: 2/7/2025
Status: ✅ Merged
Merged: 3/24/2025
Merged by: @georgemoralis
Base:
main← Head:fix_lseek_for_xna📝 Commits (5)
806913bFix lseek(fd, -1, SEEK_SET) for XNA6fe7275be sure, if seek really return errorb29a1ecrefactoring27aa629Merge remote-tracking branch 'origin/main' into fix_lseek_for_xna4fa9d8elet host os set lseek errors📊 Changes
2 files changed (+1 additions, -14 deletions)
View changed files
📝
src/common/io_file.cpp(+0 -14)📝
src/core/libraries/kernel/file_system.cpp(+1 -0)📄 Description
In game Timespinner, the code:
bad C# u32>s64 conversion leads to huge offset, and in C-code it compares to (s32)(-1), too, which not equal (s64)(-1) and then crash.
But, as you may see, in C# code, result of Seek() to not checked at all, and even not used, so, we can pass needed result/error to C-code.
I did some other changes, which made the game playable, but i do not know, which helps, will make pr for it later
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.