From 9fefb2942865846ccb7dbdac4ebd4515b8c851a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jan 2017 18:25:48 +0300 Subject: Add physfs deinit function for unit tests. But not using it for now. --- src/utils/physfstools.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/utils/physfstools.cpp') diff --git a/src/utils/physfstools.cpp b/src/utils/physfstools.cpp index 6cc809656..1424bb2a2 100644 --- a/src/utils/physfstools.cpp +++ b/src/utils/physfstools.cpp @@ -161,4 +161,14 @@ namespace PhysFs return buffer; } + + bool deinit() + { + if (PHYSFS_deinit() != 0) + { + logger->log("Physfs deinit error: %s", PHYSFS_getLastError()); + return false; + } + return true; + } } // namespace PhysFs -- cgit v1.2.3-60-g2f50