diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-04 18:25:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-04 18:25:48 +0300 |
commit | 9fefb2942865846ccb7dbdac4ebd4515b8c851a2 (patch) | |
tree | c3e805eb002d03c286de2a3fe37f450f6279f82c /src/utils/physfstools.cpp | |
parent | 76ad2d74012c408788473c3b495076c96666b27c (diff) | |
download | manaverse-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.gz manaverse-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.bz2 manaverse-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.xz manaverse-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.zip |
Add physfs deinit function for unit tests. But not using it for now.
Diffstat (limited to 'src/utils/physfstools.cpp')
-rw-r--r-- | src/utils/physfstools.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 |