diff options
| author | comex <comexk@gmail.com> | 2015-06-02 20:29:08 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2015-06-02 20:29:08 -0400 |
| commit | 349f9d549370d1b1ef7662e4cedef0c96133f232 (patch) | |
| tree | ed25fd2e5620ddea480ff95c376e8aed1d654040 /Source/Core/DolphinQt/GameList/GameFile.cpp | |
| parent | 2ae6fb9240ffd0a25727bede295d0d3afa3cab0c (diff) | |
| parent | 301218a1039a651067a524bceccbd970f965235c (diff) | |
Merge pull request #2484 from JosJuice/volume-return-types
Volume: Use more appropriate types for some returned values
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameFile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp index b7ee748c52..7c53e7d0a1 100644 --- a/Source/Core/DolphinQt/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt/GameList/GameFile.cpp @@ -25,7 +25,7 @@ #include "DolphinQt/Utils/Resources.h" #include "DolphinQt/Utils/Utils.h" -static const u32 CACHE_REVISION = 0x007; +static const u32 CACHE_REVISION = 0x008; static const u32 DATASTREAM_REVISION = 15; // Introduced in Qt 5.2 static QMap<DiscIO::IVolume::ELanguage, QString> ConvertLocalizedStrings(std::map<DiscIO::IVolume::ELanguage, std::string> strings) @@ -100,7 +100,7 @@ GameFile::GameFile(const QString& fileName) m_unique_id = QString::fromStdString(volume->GetUniqueID()); m_compressed = DiscIO::IsCompressedBlob(fileName.toStdString()); - m_is_disc_two = volume->IsDiscTwo(); + m_disc_number = volume->GetDiscNumber(); m_revision = volume->GetRevision(); QFileInfo info(m_file_name); @@ -180,7 +180,7 @@ bool GameFile::LoadFromCache() >> m_banner >> m_compressed >> m_platform - >> m_is_disc_two + >> m_disc_number >> m_revision; m_country = (DiscIO::IVolume::ECountry)country; m_names = CastLocalizedStrings<DiscIO::IVolume::ELanguage>(names); @@ -220,7 +220,7 @@ void GameFile::SaveToCache() << m_banner << m_compressed << m_platform - << m_is_disc_two + << m_disc_number << m_revision; } |
