TUCKER: Migrate engine to Path

This commit is contained in:
Le Philousophe 2023-11-01 11:05:32 +01:00 committed by Eugene Sandulenko
parent c803257af9
commit a57eaeb342
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;