mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-29 10:26:18 -04:00
Added a Gig directory to user lmms folder
Added option to set gig folder in setup dialog Gig player now opens at this location
This commit is contained in:
@@ -67,6 +67,7 @@ ConfigManager::ConfigManager() :
|
||||
#endif
|
||||
m_vstDir( m_workingDir + "vst" + QDir::separator() ),
|
||||
m_flDir( QDir::home().absolutePath() ),
|
||||
m_gigDir( m_workingDir + GIG_PATH ),
|
||||
m_version( defaultVersion() )
|
||||
{
|
||||
}
|
||||
@@ -179,6 +180,11 @@ void ConfigManager::setBackgroundArtwork( const QString & _ba )
|
||||
#endif
|
||||
}
|
||||
|
||||
void ConfigManager::setGIGDir(const QString &gd)
|
||||
{
|
||||
m_gigDir = gd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -339,6 +345,8 @@ void ConfigManager::loadConfigFile()
|
||||
}
|
||||
}
|
||||
setWorkingDir( value( "paths", "workingdir" ) );
|
||||
|
||||
setGIGDir( value( "paths", "gigdir" ) == "" ? gigDir() : value( "paths", "gigdir" ) );
|
||||
setVSTDir( value( "paths", "vstdir" ) );
|
||||
setFLDir( value( "paths", "fldir" ) );
|
||||
setLADSPADir( value( "paths", "laddir" ) );
|
||||
@@ -425,6 +433,7 @@ void ConfigManager::loadConfigFile()
|
||||
QDir().mkpath( userProjectsDir() );
|
||||
QDir().mkpath( userSamplesDir() );
|
||||
QDir().mkpath( userPresetsDir() );
|
||||
QDir().mkpath( userGigDir() );
|
||||
}
|
||||
|
||||
upgrade();
|
||||
@@ -439,6 +448,7 @@ void ConfigManager::saveConfigFile()
|
||||
setValue( "paths", "workingdir", m_workingDir );
|
||||
setValue( "paths", "vstdir", m_vstDir );
|
||||
setValue( "paths", "fldir", m_flDir );
|
||||
setValue( "paths", "gigdir", m_gigDir );
|
||||
setValue( "paths", "laddir", m_ladDir );
|
||||
#ifdef LMMS_HAVE_STK
|
||||
setValue( "paths", "stkdir", m_stkDir );
|
||||
|
||||
Reference in New Issue
Block a user