Added a camera option

Also a couple minor optimizations
This commit is contained in:
Raul Tambre 2014-09-18 21:19:10 +03:00
parent 279ec3d8a3
commit fcfdd1551b
4 changed files with 15 additions and 4 deletions

View file

@ -171,7 +171,6 @@ void Emulator::Load()
if(IsSelf(m_path))
{
std::string self_path = m_path;
std::string elf_path = rFileName(m_path).GetPath();
if (fmt::CmpNoCase(rFileName(m_path).GetFullName(),"EBOOT.BIN") == 0)
@ -183,7 +182,7 @@ void Emulator::Load()
elf_path += "/" + rFileName(m_path).GetName() + ".elf";
}
if(!DecryptSelf(elf_path, self_path))
if(!DecryptSelf(elf_path, m_path))
return;
m_path = elf_path;