Merge pull request #1796 from Stevoisiak/cacheRevisionNote
Added CACHE_REVISION warnings
This commit is contained in:
commit
b3474c8218
Source/Core
|
@ -42,7 +42,7 @@ public:
|
||||||
|
|
||||||
virtual bool ChangePartition(u64 offset) { return false; }
|
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
|
enum ECountry
|
||||||
{
|
{
|
||||||
COUNTRY_EUROPE = 0,
|
COUNTRY_EUROPE = 0,
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include "Common/Logging/Log.h"
|
#include "Common/Logging/Log.h"
|
||||||
#include "DiscIO/Volume.h"
|
#include "DiscIO/Volume.h"
|
||||||
|
|
||||||
|
// Increment CACHE_REVISION if the code below is modified (ISOFile.cpp & GameFile.cpp)
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
IVolume::ECountry CountrySwitch(u8 CountryCode)
|
IVolume::ECountry CountrySwitch(u8 CountryCode)
|
||||||
|
|
|
@ -152,7 +152,7 @@ bool GameFile::LoadFromCache()
|
||||||
if (!file.open(QFile::ReadOnly))
|
if (!file.open(QFile::ReadOnly))
|
||||||
return false;
|
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);
|
QDataStream stream(&file);
|
||||||
stream.setVersion(DATASTREAM_REVISION);
|
stream.setVersion(DATASTREAM_REVISION);
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ void GameFile::SaveToCache()
|
||||||
if (!file.open(QFile::WriteOnly))
|
if (!file.open(QFile::WriteOnly))
|
||||||
return;
|
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);
|
QDataStream stream(&file);
|
||||||
stream.setVersion(DATASTREAM_REVISION);
|
stream.setVersion(DATASTREAM_REVISION);
|
||||||
stream << CACHE_REVISION;
|
stream << CACHE_REVISION;
|
||||||
|
|
Loading…
Reference in New Issue