fixmeup use

This commit is contained in:
Tillmann Karras
2014-05-11 10:37:08 +02:00
parent 4400e511c0
commit fd94ce5210
4 changed files with 10 additions and 6 deletions

View File

@ -8,6 +8,7 @@
#include "Common/CommonPaths.h"
#include "Common/FileUtil.h"
#include "Common/NandPaths.h"
#include "Common/StdMakeUnique.h"
#include "Core/ConfigManager.h"
#include "Core/PatchEngine.h"
@ -98,11 +99,11 @@ bool CBoot::Boot_WiiWAD(const std::string& _pFilename)
std::unique_ptr<CDolLoader> pDolLoader;
if (pContent->m_pData)
{
pDolLoader.reset(new CDolLoader(pContent->m_pData, pContent->m_Size));
pDolLoader = std::make_unique<CDolLoader>(pContent->m_pData, pContent->m_Size);
}
else
{
pDolLoader.reset(new CDolLoader(pContent->m_Filename));
pDolLoader = std::make_unique<CDolLoader>(pContent->m_Filename);
}
pDolLoader->Load();
PC = pDolLoader->GetEntryPoint() | 0x80000000;