Compilation fix 2

This commit is contained in:
Nekotekina 2015-04-17 17:05:28 +03:00
parent 9bedf0d13e
commit d9b53b476f
2 changed files with 10 additions and 7 deletions

View File

@ -354,6 +354,7 @@ __noinline s32 savedata_op(
vfsFile f(sfo_path);
PSFLoader psf(f);
f.Close();
std::string dir_local_path;
@ -490,8 +491,9 @@ __noinline s32 savedata_op(
{
Emu.GetVFS().CreateFile(sfo_path, true);
vfsFile f(sfo_path, vfsWrite);
f.Open(sfo_path, vfsWrite);
psf.Save(f);
f.Close();
}
// Enter the loop where the save files are read/created/deleted

View File

@ -212,7 +212,8 @@ void Emulator::Load()
}
LOG_NOTICE(LOADER, " "); //used to be skip_line
const PSFLoader psf(vfsFile("/app_home/../PARAM.SFO"));
vfsFile f("/app_home/../PARAM.SFO");
const PSFLoader psf(f);
std::string title = psf.GetString("TITLE");
std::string title_id = psf.GetString("TITLE_ID");
LOG_NOTICE(LOADER, "Title: %s", title.c_str());
@ -222,12 +223,12 @@ void Emulator::Load()
SetTitleID(title_id);
// bdvd inserting imitation
vfsFile f1("/app_home/../dev_bdvd.path");
if (f1.IsOpened())
f.Open("/app_home/../dev_bdvd.path");
if (f.IsOpened())
{
std::string bdvd;
bdvd.resize(f1.GetSize());
f1.Read(&bdvd[0], bdvd.size());
bdvd.resize(f.GetSize());
f.Read(&bdvd[0], bdvd.size());
// load desired /dev_bdvd/ real directory and remount
Emu.GetVFS().Mount("/dev_bdvd/", bdvd, new vfsDeviceLocalFile());
@ -240,7 +241,7 @@ void Emulator::Load()
GetVFS().GetDeviceLocal(m_path, m_elf_path);
}
vfsFile f(m_elf_path);
f.Open(m_elf_path);
if (!f.IsOpened())
{