mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Reuse the IOS code for WAD installation
* Less code and logic duplication. * Fixes a bug with the data dir not being created, steps being done in the wrong order.
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
#include "DolphinQt2/GameList/GameFile.h"
|
||||
#include "DolphinQt2/Resources.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
#include "UICommon/WiiUtils.h"
|
||||
|
||||
static const int CACHE_VERSION = 13; // Last changed in PR #3261
|
||||
static const int DATASTREAM_VERSION = QDataStream::Qt_5_5;
|
||||
@ -331,7 +332,7 @@ bool GameFile::Install()
|
||||
{
|
||||
_assert_(m_platform == DiscIO::Platform::WII_WAD);
|
||||
|
||||
return DiscIO::CNANDContentManager::Access().Install_WiiWAD(m_path.toStdString());
|
||||
return WiiUtils::InstallWAD(m_path.toStdString());
|
||||
}
|
||||
|
||||
bool GameFile::Uninstall()
|
||||
|
Reference in New Issue
Block a user