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 version),
97 fmt::format(fmt::runtime(msg), version), std::source_location::current());
98 }
99 }
100 catch (const std::exception& e) {
102 throw;
103 }
104 }
std::string language_
Definition CommandSet.h:106
std::vector< std::pair< std::string, std::vector< std::pair< std::string, std::string > > > > allcommands_
Definition CommandSet.h:108
std::vector< std::string > wraps_
Definition CommandSet.h:110
std::unordered_map< std::string, std::pair< std::string, std::string > > repeat_messages_
Definition CommandSet.h:109