From a70addadba0be1880bc55f13701034585aa19128 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Mar 2017 02:55:29 +0300 Subject: Fix possible leaks on exit and asserts about adding non existing zips and directories. --- src/fs/physfs/virtfs.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/fs/physfs') 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) { -- cgit v1.2.3-70-g09d2