From fe49427688f629a9cd82e867976bd7bb5421eb36 Mon Sep 17 00:00:00 2001 From: Stevoisiak Date: Tue, 30 Dec 2014 20:05:33 -0500 Subject: [PATCH] Additional CACHE_REVISION increment warnings GameFile.cpp warnings for DolphinQt, ISOFile.cpp warnings for DolphinWX --- Source/Core/DiscIO/Volume.h | 2 +- Source/Core/DiscIO/VolumeCommon.cpp | 1 + Source/Core/DolphinQt/GameList/GameFile.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/DiscIO/Volume.h b/Source/Core/DiscIO/Volume.h index 6162e0db8f..c6438e216a 100644 --- a/Source/Core/DiscIO/Volume.h +++ b/Source/Core/DiscIO/Volume.h @@ -41,7 +41,7 @@ public: virtual bool ChangePartition(u64 offset) { return false; } - // Increment CACHE_REVISION if values are changed (ISOFile.cpp) + // Increment CACHE_REVISION if the code below is modified (ISOFile.cpp & GameFile.cpp) enum ECountry { COUNTRY_EUROPE = 0, diff --git a/Source/Core/DiscIO/VolumeCommon.cpp b/Source/Core/DiscIO/VolumeCommon.cpp index 0956f119c9..1d92458814 100644 --- a/Source/Core/DiscIO/VolumeCommon.cpp +++ b/Source/Core/DiscIO/VolumeCommon.cpp @@ -9,6 +9,7 @@ #include "Common/Logging/Log.h" #include "DiscIO/Volume.h" +// Increment CACHE_REVISION if the code below is modified (ISOFile.cpp & GameFile.cpp) namespace DiscIO { IVolume::ECountry CountrySwitch(u8 CountryCode) diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp index f5f4dd9899..cd56d39b85 100644 --- a/Source/Core/DolphinQt/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt/GameList/GameFile.cpp @@ -152,7 +152,7 @@ bool GameFile::LoadFromCache() if (!file.open(QFile::ReadOnly)) return false; - // If you modify the code below, you MUST bump the CACHE_REVISION! (ISOFile.cpp) + // Increment CACHE_REVISION if the code below is modified (GameFile.cpp) QDataStream stream(&file); stream.setVersion(DATASTREAM_REVISION); @@ -195,7 +195,7 @@ void GameFile::SaveToCache() if (!file.open(QFile::WriteOnly)) return; - // If you modify the code below, you MUST bump the CACHE_REVISION! (ISOFile.cpp) + // Increment CACHE_REVISION if the code below is modified (GameFile.cpp) QDataStream stream(&file); stream.setVersion(DATASTREAM_REVISION); stream << CACHE_REVISION;