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
+7 -1
View File
@@ -237,7 +237,13 @@ size_t DirectoryFileSystem::SeekFile(u32 handle, s32 position, FileMove type)
PSPFileInfo DirectoryFileSystem::GetFileInfo(std::string filename)
{
PSPFileInfo x;
x.size=0;
x.name = filename;
if (!File::Exists(filename)) {
return x;
}
x.exists = true;
x.type = File::IsDirectory(filename) ? FILETYPE_NORMAL : FILETYPE_DIRECTORY;
std::string fullName = GetLocalPath(filename);