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 {
115 "The file, 'settings.xml', is marked as a version not supported by the "
116 "current "
117 "version of MIDI2LR SettingsStruct, and won't be loaded. File version: {}."};
119 fmt::format(msg, version));
120 }
121 break;
122 }
123 }
124 catch (const std::exception& e) {
126 throw;
127 }
128 }
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept