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