From 1952869cdcc3d81a3bed16b3576e3693ab9ba861 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 15 Jan 2025 14:08:45 +1000 Subject: [PATCH] Cheats: Author field should be exported --- src/core/cheats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp index 6114834b1f..6f75bbb678 100644 --- a/src/core/cheats.cpp +++ b/src/core/cheats.cpp @@ -587,6 +587,8 @@ std::string Cheats::FormatCodeForFile(const CodeInfo& code) fmt::memory_buffer buf; auto appender = std::back_inserter(buf); fmt::format_to(appender, "[{}]\n", code.name); + if (!code.author.empty()) + fmt::format_to(appender, "Author = {}\n", code.author); if (!code.description.empty()) fmt::format_to(appender, "Description = {}\n", code.description); fmt::format_to(appender, "Type = {}\n", GetTypeName(code.type));