diff options
| author | Mai <mathew1800@gmail.com> | 2022-09-29 09:02:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-29 09:02:47 -0400 |
| commit | 865348cfb171cd1655fb3411982d37a99116ff1b (patch) | |
| tree | edc3b934b7a46efbbbdb050b4121a69551f39ff8 /Source/Core/UICommon/GameFileCache.cpp | |
| parent | 4f5a6ee461f3624816b9d6e44855d0761c463ba3 (diff) | |
| parent | d4709ce0ba3e81f4616b873a1139c05d3108ffd5 (diff) | |
Merge pull request #11103 from JosJuice/android-gamefilecache-not-null
Android: Allocate GameFileCache on GUI thread
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index f9b26d344d..59c4c9a292 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -4,7 +4,6 @@ #include "UICommon/GameFileCache.h" #include <algorithm> -#include <atomic> #include <cstddef> #include <functional> #include <list> @@ -204,7 +203,7 @@ bool GameFileCache::UpdateAdditionalMetadata(std::shared_ptr<GameFile>* game_fil if (custom_cover_changed) copy->CustomCoverCommit(); - std::atomic_store(game_file, std::move(copy)); + *game_file = std::move(copy); return true; } |
