From 03b4e16e0eb79f0ce1d6cd4f5736db962c759426 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 17 Dec 2015 21:49:28 +0100 Subject: [PATCH] DolphinQt: Attempt at fixing issue 9170 --- Source/Core/DolphinQt/GameList/GameFile.cpp | 7 ++++++- Source/Core/DolphinQt/GameList/GameFile.h | 2 +- 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;