mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 16:58:26 +00:00
COMMON: Probe files for existnce, so there is less noise
This commit is contained in:
parent
aa14d59447
commit
82e21f3c3c
@ -69,11 +69,16 @@ bool generateZipSet(Common::SearchSet &searchSet, const char *defaultFile, const
|
||||
|
||||
if (!dat) {
|
||||
Common::File *file = new Common::File;
|
||||
if (ConfMan.hasKey(packsPath))
|
||||
file->open(normalizePath(ConfMan.get(packsPath) + "/" + defaultFile, '/'));
|
||||
if (ConfMan.hasKey(packsPath)) {
|
||||
Common::String path(normalizePath(ConfMan.get(packsPath) + "/" + defaultFile, '/'));
|
||||
|
||||
if (File::exists(path))
|
||||
file->open(path);
|
||||
}
|
||||
|
||||
if (!file->isOpen())
|
||||
file->open(defaultFile);
|
||||
if (File::exists(defaultFile))
|
||||
file->open(defaultFile);
|
||||
|
||||
if (file->isOpen())
|
||||
dat = Common::makeZipArchive(defaultFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user