Skip to content

Commit

Permalink
IO:Add an extra delay to simulate umd delay in file seek whence.
Browse files Browse the repository at this point in the history
Pangya(KS) seems want to check something base on this delay and system time.Anyhow, the game work now.
  • Loading branch information
shenweip committed Dec 13, 2019
1 parent e847881 commit a6d511d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/HLE/sceIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2531,6 +2531,10 @@ static int __IoIoctl(u32 id, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr,
// TODO: Should probably move this to something common between ISOFileSystem and VirtualDiscSystem.
INFO_LOG(SCEIO, "sceIoIoctl: Sector seek for file %i", id);
// Even if the size is 4, it still actually reads a 16 byte struct, it seems.

if (GetIOTimingMethod() == IOTIMING_REALISTIC)
usec = 15000;// Fantasy Golf Pangya Portable(KS) needs a delay over 15000us.

if (Memory::IsValidAddress(indataPtr) && inlen >= 4) {
struct SeekInfo {
u64 offset;
Expand Down

0 comments on commit a6d511d

Please sign in to comment.