mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-25 03:09:13 +01:00
Common: Use Path for GetFileSize().
This commit is contained in:
1 parent
2558022afe
commit
82cd904e99
4 files changed
+9
-9
No files matched your search
@@ -142,7 +142,7 @@ void VirtualDiscFileSystem::LoadFileListIndex() {
|
||||
ERROR_LOG(FILESYS, "Unable to open virtual file: %s", entry.fileName.c_str());
|
||||
}
|
||||
} else {
|
||||
entry.totalSize = File::GetFileSize(GetLocalPath(entry.fileName).ToString());
|
||||
entry.totalSize = File::GetFileSize(GetLocalPath(entry.fileName));
|
||||
}
|
||||
|
||||
// Try to keep currentBlockIndex sane, in case there are other files.
|
||||
@@ -291,7 +291,7 @@ int VirtualDiscFileSystem::getFileListIndex(std::string &fileName)
|
||||
|
||||
FileListEntry entry = {""};
|
||||
entry.fileName = normalized;
|
||||
entry.totalSize = File::GetFileSize(fullName.ToString());
|
||||
entry.totalSize = File::GetFileSize(fullName);
|
||||
entry.firstBlock = currentBlockIndex;
|
||||
currentBlockIndex += (entry.totalSize+2047)/2048;
|
||||
|
||||
|
||||
Reference in new issue
Block a user