83 {
84 try {
85 if (std::cmp_equal(version, 2)) {
86 archive(cereal::make_nvp(
"language",
language_),
89 cereal::make_nvp(
"wraps",
wraps_));
90 }
91 else {
92 constexpr auto msg {
93 "The file, 'MenuTrans.xml', is marked as a version not supported by the current "
94 "version of MIDI2LR, and won't be loaded. File version: {}."};
96 fmt::format(msg, version), std::source_location::current());
97 }
98 }
99 catch (const std::exception& e) {
101 throw;
102 }
103 }
std::string language_
Definition CommandSet.h:105
std::vector< std::pair< std::string, std::vector< std::pair< std::string, std::string > > > > allcommands_
Definition CommandSet.h:107
std::vector< std::string > wraps_
Definition CommandSet.h:109
std::unordered_map< std::string, std::pair< std::string, std::string > > repeat_messages_
Definition CommandSet.h:108