summaryrefslogtreecommitdiff
path: root/src/utils/physfstools.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-04 18:25:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-04 18:25:48 +0300
commit9fefb2942865846ccb7dbdac4ebd4515b8c851a2 (patch)
treec3e805eb002d03c286de2a3fe37f450f6279f82c /src/utils/physfstools.cpp
parent76ad2d74012c408788473c3b495076c96666b27c (diff)
downloadplus-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.gz
plus-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.bz2
plus-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.xz
plus-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.cpp10
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