From c8bffb01531addda9f345c30d614500650ca82a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 14 May 2017 00:15:12 +0200 Subject: 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. --- Source/Core/DolphinQt2/GameList/GameFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinQt2/GameList/GameFile.cpp') 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() -- cgit v1.2.3