13
0

Don't allow GMCP to override loading_state_version

- GMPC does not use it directly
- when GMPC was enabled Stateful::loading_state_version was set to 1000
  (the protocol is at 1.0.0)
- it messes up session-loading, particularly various plugin states and
  templates (e.g  Processor::set_state_2X was used)
This commit is contained in:
Robin Gareus 2017-03-04 17:47:57 +01:00
parent 345f38f1de
commit ad6ddf70df

View File

@ -746,13 +746,6 @@ GenericMidiControlProtocol::load_bindings (const string& xmlpath)
if ((prop = root->property ("version")) == 0) {
return -1;
} else {
int major;
int minor;
int micro;
sscanf (prop->value().c_str(), "%d.%d.%d", &major, &minor, &micro);
Stateful::loading_state_version = (major * 1000) + minor;
}
const XMLNodeList& children (root->children());