summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-01 03:07:17 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-01 03:07:22 +0200
commitf72046099ac1bce64017e6940daba6ee2ce8e9fb (patch)
tree751bd8c345e7036d632e616eaa4b49ed4877f525 /src/core/file_sys
parentaoc_u: Implement GetAddOnContentBaseId (diff)
downloadyuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.tar
yuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.tar.gz
yuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.tar.bz2
yuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.tar.lz
yuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.tar.xz
yuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.tar.zst
yuzu-f72046099ac1bce64017e6940daba6ee2ce8e9fb.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/patch_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index ceb462ec4..57b7741f8 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
#include <array>
#include <cstddef>
@@ -185,7 +186,7 @@ std::map<PatchType, std::string> PatchManager::GetPatchVersionNames() const {
list += fmt::format("{}", dlc_match.back().title_id & 0x7FF);
- out[PatchType::DLC] = list;
+ out.insert_or_assign(PatchType::DLC, std::move(list));
}
return out;