mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Async I/O: Don't delay on close. Fixes #12549 (MGS:PW crash).
Also sneak in a small change in logging.
This commit is contained in:
1 parent
a881d78d64
commit
e2845363e9
2 files changed
+3
-3
No files matched your search
@@ -37,7 +37,7 @@ PBPReader::PBPReader(FileLoader *fileLoader) : file_(nullptr), header_(), isELF_
|
||||
}
|
||||
if (memcmp(header_.magic, "\0PBP", 4) != 0) {
|
||||
if (memcmp(header_.magic, "\nFLE", 4) != 0) {
|
||||
DEBUG_LOG(LOADER, "%s: File actually an ELF, not a PBP", fileLoader->Path().c_str());
|
||||
VERBOSE_LOG(LOADER, "%s: File actually an ELF, not a PBP", fileLoader->Path().c_str());
|
||||
isELF_ = true;
|
||||
} else {
|
||||
ERROR_LOG(LOADER, "Magic number in %s indicated no PBP: %s", fileLoader->Path().c_str(), header_.magic);
|
||||
|
||||
+2
-2
@@ -2719,8 +2719,8 @@ static int IoAsyncFinish(int id) {
|
||||
|
||||
case IoAsyncOp::CLOSE:
|
||||
f->asyncResult = 0;
|
||||
// TODO: Rough estimate.
|
||||
us = 100;
|
||||
// CLOSE shouldn't have a delay. See #12549.
|
||||
us = 0;
|
||||
DEBUG_LOG(SCEIO, "ASYNC %lli = sceIoCloseAsync(%d)", f->asyncResult, id);
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user