5
5
email : spappalardo@mixxx.org
6
6
***************************************************************************/
8
#define USER_PRESETS_PATH QDir::homePath().append("/").append(SETTINGS_PATH).append("controllers/")
9
#define OLD_USER_PRESETS_PATH QDir::homePath().append("/").append(SETTINGS_PATH).append("midi/")
10
#define LOCAL_PRESETS_PATH QDir::homePath().append("/").append(SETTINGS_PATH).append("presets/")
9
#include "configobject.h"
11
inline QString resourcePresetsPath(ConfigObject<ConfigValue>* pConfig) {
12
QString presetsPath = pConfig->getResourcePath();
13
QDir dir(presetsPath.append("/controllers/"));
14
return dir.absolutePath().append("/");
17
// Prior to Mixxx 1.11.0 presets were stored in ${SETTINGS_PATH}/midi.
18
inline QString legacyUserPresetsPath(ConfigObject<ConfigValue>* pConfig) {
19
QString presetsPath = pConfig->getSettingsPath();
20
QDir dir(presetsPath.append("/midi/"));
21
return dir.absolutePath().append("/");
24
inline QString userPresetsPath(ConfigObject<ConfigValue>* pConfig) {
25
QString presetsPath = pConfig->getSettingsPath();
26
QDir dir(presetsPath.append("/controllers/"));
27
return dir.absolutePath().append("/");
30
inline QString localPresetsPath(ConfigObject<ConfigValue>* pConfig) {
31
QString presetsPath = pConfig->getSettingsPath();
32
QDir dir(presetsPath.append("/presets/"));
33
return dir.absolutePath().append("/");
11
36
#define HID_PRESET_EXTENSION ".hid.xml"
12
37
#define MIDI_PRESET_EXTENSION ".midi.xml"
13
38
#define BULK_PRESET_EXTENSION ".bulk.xml"