summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-12 02:27:37 +0100
committerGitHub <noreply@github.com>2018-12-12 02:27:37 +0100
commit785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5 (patch)
treea3e411c1346f577c7fd976d2f73d827003fe820d /src/core
parentMerge pull request #1877 from heapo/audio_interp (diff)
parentpatch_manager: Prevent use of a dangling pointer within PatchRomFS (diff)
downloadyuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.tar
yuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.tar.gz
yuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.tar.bz2
yuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.tar.lz
yuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.tar.xz
yuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.tar.zst
yuzu-785d6f9ce09b0dcd39cc93ddbbd98afa2e906ef5.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/patch_manager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index ecdc21c87..61706966e 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -286,13 +286,12 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t
VirtualFile PatchManager::PatchRomFS(VirtualFile romfs, u64 ivfc_offset, ContentRecordType type,
VirtualFile update_raw) const {
const auto log_string = fmt::format("Patching RomFS for title_id={:016X}, type={:02X}",
- title_id, static_cast<u8>(type))
- .c_str();
+ title_id, static_cast<u8>(type));
if (type == ContentRecordType::Program || type == ContentRecordType::Data)
- LOG_INFO(Loader, log_string);
+ LOG_INFO(Loader, "{}", log_string);
else
- LOG_DEBUG(Loader, log_string);
+ LOG_DEBUG(Loader, "{}", log_string);
if (romfs == nullptr)
return romfs;