diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-02 02:55:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-02 02:55:29 +0300 |
commit | a70addadba0be1880bc55f13701034585aa19128 (patch) | |
tree | 5412e7844cc5a08532b82e4776b4bd3c9bff4818 /src/dirs.cpp | |
parent | 38846eb9dda3b1656a0b36acb2945edf7b314fa0 (diff) | |
download | plus-a70addadba0be1880bc55f13701034585aa19128.tar.gz plus-a70addadba0be1880bc55f13701034585aa19128.tar.bz2 plus-a70addadba0be1880bc55f13701034585aa19128.tar.xz plus-a70addadba0be1880bc55f13701034585aa19128.zip |
Fix possible leaks on exit and asserts about adding non existing zips and directories.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r-- | src/dirs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp index 72d108388..052ba1dbb 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -189,9 +189,9 @@ void Dirs::extractDataDir() void Dirs::mountDataDir() { - VirtFs::addDirToSearchPath(PKG_DATADIR "data/perserver/default", + VirtFs::addDirToSearchPathSilent(PKG_DATADIR "data/perserver/default", Append_false); - VirtFs::addDirToSearchPath("data/perserver/default", + VirtFs::addDirToSearchPathSilent("data/perserver/default", Append_false); #if defined __APPLE__ @@ -213,9 +213,9 @@ void Dirs::mountDataDir() // mPackageDir = path; #endif // defined __APPLE__ - VirtFs::addDirToSearchPath(PKG_DATADIR "data", Append_false); + VirtFs::addDirToSearchPathSilent(PKG_DATADIR "data", Append_false); setPackageDir(PKG_DATADIR "data"); - VirtFs::addDirToSearchPath("data", Append_false); + VirtFs::addDirToSearchPathSilent("data", Append_false); #ifdef ANDROID #ifdef USE_SDL2 |