Sequencer: Fix instrument path.
This commit is contained in:
parent
a797093a58
commit
8055e08e9e
|
@ -160,7 +160,7 @@ Instrument::read ( const char *s )
|
|||
if ( ! ( fp = fopen( pat, "r" ) ) )
|
||||
{
|
||||
|
||||
sprintf( pat, "%s%s.inst", SYSTEM_PATH INSTRUMENT_DIR, s );
|
||||
sprintf( pat, "%s/%s/%s.inst", SYSTEM_PATH, INSTRUMENT_DIR, s );
|
||||
|
||||
if ( ! ( fp = fopen( pat, "r" ) ) )
|
||||
return false;
|
||||
|
@ -291,7 +291,7 @@ get_listing( const char *dir )
|
|||
char **
|
||||
Instrument::listing ( void )
|
||||
{
|
||||
list <string> *sys = get_listing( SYSTEM_PATH INSTRUMENT_DIR );
|
||||
list <string> *sys = get_listing( SYSTEM_PATH "/" INSTRUMENT_DIR );
|
||||
list <string> *usr = get_listing( config.user_config_dir );
|
||||
|
||||
if ( ! ( usr || sys ) )
|
||||
|
|
Loading…
Reference in New Issue