Rewrite callback handling, part 1. All sorts of other fixes too.

This commit is contained in:
Henrik Rydgard
2012-11-06 15:46:21 +01:00
parent 91eeed6408
commit c61d10363a
26 changed files with 642 additions and 426 deletions

View File

@@ -94,6 +94,11 @@ u32 MetaFileSystem::OpenFile(std::string filename, FileAccess access)
PSPFileInfo MetaFileSystem::GetFileInfo(std::string filename)
{
std::string of;
if (filename.find(':') == std::string::npos)
{
filename = currentDirectory + "/" + filename;
DEBUG_LOG(HLE,"GetFileInfo: Expanded path to %s", filename.c_str());
}
IFileSystem *system;
if (MapFilePath(filename, of, &system))
{