alex9490 / editor-on-fire

Automatically exported from code.google.com/p/editor-on-fire
Other
0 stars 0 forks source link

Change default "Select Music File" file path for Feedback import #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Seemingly, in most cases, Feedback chart files that are posted on the forum
have the audio file named guitar.ogg and the chart file doesn't refer to
that file.  In this case, during Feedback Import, it would be best to have
the dialog to browse for the chart's audio default to the path containing
the .chart file instead of the last OGG loaded path.

Original issue reported on code.google.com by raynebc on 24 May 2010 at 1:25

GoogleCodeExporter commented 8 years ago
I would like it to be able to find the OGG file automatically if it is in the 
same 
directory as the chart file. If the filename in the chart file is not usually 
correct 
we could look for "guitar.ogg" first. If that's not found we could then see if 
there 
are any OGG files and if one is found, load that. As a last resort, the file 
dialog 
should come up.

Original comment by xander4j...@yahoo.com on 24 May 2010 at 3:50

GoogleCodeExporter commented 8 years ago
That's a pretty good idea, and if it automatically loaded the one and only OGG 
file
in the .chart file's parent folder, this would become a non issue.  If there 
were
multiple OGG files in the .chart file's folder, or if it was MP3 instead, it 
would
still be convenient for the dialog window to begin at the .chart file's folder 
so the
user doesn't have to browse to find the right audio file, since the chart file 
is
almost always kept in the same folder as its matching audio.

Original comment by raynebc on 24 May 2010 at 4:36

GoogleCodeExporter commented 8 years ago
Are there any good cross-platform ways of getting a directory's file listing 
besides
using a system() call?

Original comment by raynebc on 24 May 2010 at 4:41

GoogleCodeExporter commented 8 years ago
Allegro provides functions for searching for files. And yes, if the user needs 
to 
select an OGG file we'll start it at the location of the chart file.

Original comment by xander4j...@yahoo.com on 24 May 2010 at 4:05

GoogleCodeExporter commented 8 years ago

Original comment by xander4j...@yahoo.com on 24 May 2010 at 7:23

GoogleCodeExporter commented 8 years ago

Original comment by xander4j...@yahoo.com on 24 May 2010 at 7:56