summaryrefslogtreecommitdiff
path: root/Source/Core
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
parent2ddf180ee8c30cf46a5a6f342adc0d66a65efdaa (diff)
DolphinQt: Attempt at fixing issue 9170
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/GameList/GameFile.cpp7
-rw-r--r--Source/Core/DolphinQt/GameList/GameFile.h2
2 files changed, 7 insertions, 2 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();
diff --git a/Source/Core/DolphinQt/GameList/GameFile.h b/Source/Core/DolphinQt/GameList/GameFile.h
index bba632ce8e..8c16ac85bf 100644
--- a/Source/Core/DolphinQt/GameList/GameFile.h
+++ b/Source/Core/DolphinQt/GameList/GameFile.h
@@ -64,7 +64,7 @@ private:
QString m_company;
QString m_unique_id;
- u64 m_title_id;
+ quint64 m_title_id;
QString m_issues;
int m_emu_state = 0;