diff options
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 |