summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-12-17 21:49:28 +0100
committerJosJuice <josjuice@gmail.com>2015-12-17 21:49:28 +0100
commit03b4e16e0eb79f0ce1d6cd4f5736db962c759426 (patch)
tree4abe4c7a5b24934e979e7f04ace0419aade623b7 /Source/Core/DolphinQt/GameList/GameFile.cpp
parent2ddf180ee8c30cf46a5a6f342adc0d66a65efdaa (diff)
DolphinQt: Attempt at fixing issue 9170
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
-rw-r--r--Source/Core/DolphinQt/GameList/GameFile.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp
index 66b4c26005..0d773d1fe0 100644
--- a/Source/Core/DolphinQt/GameList/GameFile.cpp
+++ b/Source/Core/DolphinQt/GameList/GameFile.cpp
@@ -109,8 +109,13 @@ GameFile::GameFile(const QString& fileName)
m_file_size = volume->GetRawSize();
m_volume_size = volume->GetSize();
+ // A temporary variable is necessary here to convert between
+ // quint64 (needed by GameFile's cache code) and u64 (needed by GetTitleID)
+ u64 title_id;
+ volume->GetTitleID(&title_id);
+ m_title_id = title_id;
+
m_unique_id = QString::fromStdString(volume->GetUniqueID());
- volume->GetTitleID(&m_title_id);
m_disc_number = volume->GetDiscNumber();
m_revision = volume->GetRevision();