mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Implement a stub for handlers in GetFileInfo().
This commit is contained in:
parent
a56e3a1a99
commit
bd7c57c944
1 changed files with 15 additions and 1 deletions
|
@ -503,7 +503,21 @@ PSPFileInfo VirtualDiscFileSystem::GetFileInfo(std::string filename) {
|
|||
return fileInfo;
|
||||
}
|
||||
|
||||
// TODO: Handler?
|
||||
int fileIndex = getFileListIndex(filename);
|
||||
if (fileIndex != -1 && fileList[fileIndex].handler != NULL) {
|
||||
x.type = FILETYPE_NORMAL;
|
||||
|
||||
HandlerFileHandle temp;
|
||||
if (temp.Open(basePath, filename, FILEACCESS_READ))
|
||||
{
|
||||
x.exists = true;
|
||||
x.size = temp.Seek(0, FILEMOVE_END);
|
||||
temp.Close();
|
||||
}
|
||||
|
||||
// TODO: Probably should include dates or something...
|
||||
return x;
|
||||
}
|
||||
|
||||
std::string fullName = GetLocalPath(filename);
|
||||
if (! File::Exists(fullName)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue