Merge pull request #12945 from unknownbrackets/io-timing

Make file open timing a bit more accurate
This commit is contained in:
Henrik Rydgård
2020-07-13 13:37:53 +02:00
committed by GitHub
18 changed files with 194 additions and 154 deletions
+1 -1
View File
@@ -928,7 +928,7 @@ namespace MainWindow {
u32 handle = pspFileSystem.OpenFile(filename, FILEACCESS_READ, "");
// Note: len may be in blocks.
size_t len = pspFileSystem.SeekFile(handle, 0, FILEMOVE_END);
bool isBlockMode = pspFileSystem.DevType(handle) == PSP_DEV_TYPE_BLOCK;
bool isBlockMode = pspFileSystem.DevType(handle) & PSPDevType::BLOCK;
FILE *fp = File::OpenCFile(fn, "wb");
pspFileSystem.SeekFile(handle, 0, FILEMOVE_BEGIN);