mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-21 00:38:43 +00:00
Merge pull request #1796 from Stevoisiak/cacheRevisionNote
Added CACHE_REVISION warnings
This commit is contained in:
commit
b3474c8218
3 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue