summaryrefslogtreecommitdiff
path: root/src/fs/physfs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-02 02:55:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-02 02:55:29 +0300
commita70addadba0be1880bc55f13701034585aa19128 (patch)
tree5412e7844cc5a08532b82e4776b4bd3c9bff4818 /src/fs/physfs
parent38846eb9dda3b1656a0b36acb2945edf7b314fa0 (diff)
downloadplus-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/fs/physfs')
-rw-r--r--src/fs/physfs/virtfs.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fs/physfs/virtfs.cpp b/src/fs/physfs/virtfs.cpp
index d19d112a3..9608dfd28 100644
--- a/src/fs/physfs/virtfs.cpp
+++ b/src/fs/physfs/virtfs.cpp
@@ -110,11 +110,22 @@ namespace VirtFs
return VirtFsPhys::addDirToSearchPath(newDir, append);
}
+ bool addDirToSearchPathSilent(const std::string &restrict newDir,
+ const Append append)
+ {
+ return VirtFsPhys::addDirToSearchPath(newDir, append);
+ }
+
bool removeDirFromSearchPath(const std::string &restrict oldDir)
{
return VirtFsPhys::removeDirFromSearchPath(oldDir);
}
+ bool removeDirFromSearchPathSilent(const std::string &restrict oldDir)
+ {
+ return VirtFsPhys::removeDirFromSearchPath(oldDir);
+ }
+
bool addZipToSearchPath(const std::string &restrict newDir,
const Append append)
{