mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
TUCKER: Migrate engine to Path
This commit is contained in:
parent
c803257af9
commit
a57eaeb342
@ -196,7 +196,7 @@ uint8 *TuckerEngine::loadFile(const char *fname, uint8 *p) {
|
||||
}
|
||||
}
|
||||
Common::File f;
|
||||
if (!f.open(filename)) {
|
||||
if (!f.open(Common::Path(filename))) {
|
||||
warning("Unable to open '%s'", filename.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
@ -975,7 +975,7 @@ void TuckerEngine::loadSound(Audio::Mixer::SoundType type, int num, int volume,
|
||||
}
|
||||
Common::String fileName = Common::String::format(fmt, num);
|
||||
Common::File *f = new Common::File;
|
||||
if (f->open(fileName)) {
|
||||
if (f->open(Common::Path(fileName))) {
|
||||
stream = Audio::makeWAVStream(f, DisposeAfterUse::YES);
|
||||
} else {
|
||||
delete f;
|
||||
|
@ -601,7 +601,7 @@ Audio::RewindableAudioStream *AnimationSequencePlayer::loadSound(int index, Anim
|
||||
if (stream)
|
||||
return stream;
|
||||
|
||||
Common::String fileName = Common::String::format("audio/%s", _audioFileNamesTable[index]);
|
||||
Common::Path fileName(Common::String::format("audio/%s", _audioFileNamesTable[index]));
|
||||
Common::File *f = new Common::File();
|
||||
if (f->open(fileName)) {
|
||||
int size = 0, rate = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user