Module loading fixes - proper module blacklisting, correct some error codes

This commit is contained in:
Henrik Rydgard
2012-11-05 12:02:09 +01:00
parent 8f751efe4d
commit 6f85f02e25
5 changed files with 165 additions and 92 deletions
+3 -1
View File
@@ -435,13 +435,15 @@ PSPFileInfo ISOFileSystem::GetFileInfo(std::string filename)
PSPFileInfo x;
if (!entry)
{
x.size=0;
x.size = 0;
x.exists = false;
}
else
{
x.name = entry->name;
x.access = FILEACCESS_READ;
x.size = entry->size;
x.exists = true;
x.type = entry->isDirectory ? FILETYPE_DIRECTORY : FILETYPE_NORMAL;
x.isOnSectorSystem = true;
x.startSector = entry->startingPosition/2048;