diff options
| author | JosJuice <josjuice@gmail.com> | 2017-06-27 11:27:36 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-06-27 11:27:36 +0200 |
| commit | e73de25a9e86df7d98b62267b3441ddbd5b5ce8b (patch) | |
| tree | def5ddc44be4d6b622532a2bf6648e35b5841368 /Source/Core | |
| parent | 540ee18966072735e7d07b770223d0ac7a58cb95 (diff) | |
GameListCtrl: Put CACHE_REVISION in .cpp file
Reduces the number of files that have to be recompiled
when changing the cache revision.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/GameListCtrl.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/DolphinWX/GameListCtrl.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index 83fd250d62..be80107790 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -80,6 +80,8 @@ public: wxProgressDialog* dialog; }; +static constexpr u32 CACHE_REVISION = 2; // Last changed in PR 5687 + static bool sorted = false; static int CompareGameListItems(const GameListItem* iso1, const GameListItem* iso2, diff --git a/Source/Core/DolphinWX/GameListCtrl.h b/Source/Core/DolphinWX/GameListCtrl.h index 6dbcf8aa3e..3004ce2e8a 100644 --- a/Source/Core/DolphinWX/GameListCtrl.h +++ b/Source/Core/DolphinWX/GameListCtrl.h @@ -125,7 +125,6 @@ private: } m_image_indexes; // Actual backing GameListItems are maintained in a background thread and cached to file - static constexpr u32 CACHE_REVISION = 2; // Last changed in PR 5687 std::list<std::shared_ptr<GameListItem>> m_cached_files; // Locks the list, not the contents std::mutex m_cache_mutex; |
