diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-05-14 00:15:12 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-05-14 15:30:42 +0200 |
| commit | c8bffb01531addda9f345c30d614500650ca82a4 (patch) | |
| tree | dce4580ae68d70fecba87657237f26e3b3f57096 /Source/Core/DolphinQt2/GameList/GameFile.cpp | |
| parent | afcda22da9002f9ce70799b1a80af414b451ecc7 (diff) | |
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.
Diffstat (limited to 'Source/Core/DolphinQt2/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/GameList/GameFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameFile.cpp b/Source/Core/DolphinQt2/GameList/GameFile.cpp index b81d491aff..f3a644934d 100644 --- a/Source/Core/DolphinQt2/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt2/GameList/GameFile.cpp @@ -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() |
