mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Synchronize IO operations before any seek.
To prevent it from seeking before the operation.
This commit is contained in:
parent
2c40cd509a
commit
07a2e57932
1 changed files with 5 additions and 0 deletions
|
@ -1024,6 +1024,11 @@ u32 npdrmLseek(FileNode *f, s32 where, FileMove whence)
|
|||
s64 __IoLseekDest(FileNode *f, s64 offset, int whence, FileMove &seek) {
|
||||
seek = FILEMOVE_BEGIN;
|
||||
|
||||
// Let's make sure this isn't incorrect mid-operation.
|
||||
if (ioManager.HasOperation(f->handle)) {
|
||||
ioManager.SyncThread();
|
||||
}
|
||||
|
||||
s64 newPos = 0;
|
||||
switch (whence) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue