mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
Remove obsolete path param
svn-id: r15278
This commit is contained in:
parent
61b7e2155a
commit
f66960c4b9
@ -67,7 +67,7 @@ static const StreamFileFormat STREAM_FILEFORMATS[] = {
|
||||
{ NULL, NULL, NULL } // Terminator
|
||||
};
|
||||
|
||||
AudioStream* AudioStream::openStreamFile(const char* filename, const char *path)
|
||||
AudioStream* AudioStream::openStreamFile(const char *filename)
|
||||
{
|
||||
char buffer[1024];
|
||||
const uint len = strlen(filename);
|
||||
@ -82,10 +82,7 @@ AudioStream* AudioStream::openStreamFile(const char* filename, const char *path)
|
||||
|
||||
for (int i = 0; i < ARRAYSIZE(STREAM_FILEFORMATS)-1 && stream == NULL; ++i) {
|
||||
strcpy(ext, STREAM_FILEFORMATS[i].fileExtension);
|
||||
if (path != NULL)
|
||||
fileHandle->open(buffer, File::kFileReadMode, path);
|
||||
else
|
||||
fileHandle->open(buffer);
|
||||
fileHandle->open(buffer);
|
||||
if (fileHandle->isOpen())
|
||||
stream = STREAM_FILEFORMATS[i].openStreamFile(fileHandle, fileHandle->size());
|
||||
}
|
||||
|
@ -82,11 +82,10 @@ public:
|
||||
* In case of an error, the file handle will be closed, but deleting
|
||||
* it is still the responsibilty of the caller.
|
||||
* @param filename a filename without an extension
|
||||
* @param path an (optional) file path which is passed to File::open()
|
||||
* @return an Audiostream ready to use in case of success;
|
||||
* NULL in case of an error (e.g. invalid/nonexisting file)
|
||||
*/
|
||||
static AudioStream* openStreamFile(const char *filename, const char *path = NULL);
|
||||
static AudioStream* openStreamFile(const char *filename);
|
||||
};
|
||||
|
||||
class AppendableAudioStream : public AudioStream {
|
||||
|
Loading…
Reference in New Issue
Block a user