73 {
74 try {
75 switch (version) {
76 case 1:
77 {
78 std::string methodstr {"undefined"};
81 methodstr = "Absolute";
82 break;
84 methodstr = "BinaryOffset";
85 break;
87 methodstr = "SignMagnitude";
88 break;
90 methodstr = "TwosComplement";
91 break;
92 }
94 cereal::make_nvp("method", methodstr));
95 switch (methodstr.front()) {
96 case 'B':
98 break;
99 case 'S':
101 break;
102 case 'T':
104 break;
105 case 'A':
106 default:
108 break;
109 }
110 break;
111 }
112 default:
113 {
114 constexpr auto msg {"The file, 'settings.xml', is marked as a version not "
115 "supported by the current version of MIDI2LR SettingsStruct, "
116 "and won't be loaded. File version: {}."};
118 fmt::format(msg, version), std::source_location::current());
119 }
120 break;
121 }
122 }
123 catch (const std::exception& e) {
125 throw;
126 }
127 }
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept