Improved VFS

- Implemended vfsDir.
- Improved vfsDevice.
- Improved vfsFile.
This commit is contained in:
DH 2014-02-16 17:19:06 +02:00
parent 5d59dae730
commit 321d323beb
36 changed files with 479 additions and 390 deletions

View file

@ -92,9 +92,9 @@ void Emulator::CheckStatus()
bool Emulator::IsSelf(const std::string& path)
{
vfsLocalFile f(path);
vfsLocalFile f(nullptr);
if(!f.IsOpened())
if(!f.Open(path))
return false;
SceHeader hdr;
@ -238,7 +238,7 @@ void Emulator::Load()
try
{
if(!(is_error = !l.Analyze() || l.GetMachine() == MACHINE_Unknown))
if(!(is_error = !l.Analyze()) && l.GetMachine() != MACHINE_Unknown)
{
switch(l.GetMachine())
{