PresetInfoEnumerator::PresetInfoEnumerator(ConfigObject<ConfigValue>* pConfig) {
    m_controllerDirPaths.append(userPresetsPath(pConfig));
    m_controllerDirPaths.append(resourcePresetsPath(pConfig));

    // Static list of supported default extensions, sorted by popularity
    m_fileExtensions.append(QString(MIDI_PRESET_EXTENSION));
    m_fileExtensions.append(QString(HID_PRESET_EXTENSION));
    m_fileExtensions.append(QString(BULK_PRESET_EXTENSION));

    loadSupportedPresets();
}
Exemplo n.º 2
0
PresetInfoEnumerator::PresetInfoEnumerator(ConfigObject<ConfigValue> *pConfig)
        : m_pConfig(pConfig) {

    QString configPath = m_pConfig->getResourcePath();
    controllerDirPaths.append(configPath.append("controllers/"));
    QString settingsPath = m_pConfig->getSettingsPath();
    controllerDirPaths.append(settingsPath.append("presets/"));

    // Static list of supported default extensions, sorted by popularity
    fileExtensions.append(QString(".midi.xml"));
    fileExtensions.append(QString(".cntrlr.xml"));
    fileExtensions.append(QString(".hid.xml"));
    fileExtensions.append(QString(".bulk.xml"));
    fileExtensions.append(QString(".osc.xml"));

    loadSupportedPresets();
}