Cheats: Author field should be exported

This commit is contained in:
Stenzek 2025-01-15 14:08:45 +10:00
parent 68d9971171
commit 1952869cdc
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -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));