Sequencer: Fix instrument path.

This commit is contained in:
Jonathan Moore Liles 2013-05-06 23:47:23 -07:00
parent a797093a58
commit 8055e08e9e
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ Instrument::read ( const char *s )
if ( ! ( fp = fopen( pat, "r" ) ) ) 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" ) ) ) if ( ! ( fp = fopen( pat, "r" ) ) )
return false; return false;
@ -291,7 +291,7 @@ get_listing( const char *dir )
char ** char **
Instrument::listing ( void ) 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 ); list <string> *usr = get_listing( config.user_config_dir );
if ( ! ( usr || sys ) ) if ( ! ( usr || sys ) )