physfs.c
changeset 130 2deec3eb7430
parent 126 f5135b499c0c
child 132 b53fa5093749
--- a/physfs.c	Thu Mar 21 04:03:38 2002 +0000
+++ b/physfs.c	Sun Mar 24 06:36:48 2002 +0000
@@ -362,6 +362,7 @@
 
     BAIL_IF_MACRO(initialized, ERR_IS_INITIALIZED, 0);
     BAIL_IF_MACRO(argv0 == NULL, ERR_INVALID_ARGUMENT, 0);
+    BAIL_IF_MACRO(!__PHYSFS_platformInit(), NULL, 0);
 
     baseDir = calculateBaseDir(argv0);
     BAIL_IF_MACRO(baseDir == NULL, NULL, 0);
@@ -438,6 +439,7 @@
 int PHYSFS_deinit(void)
 {
     BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, 0);
+    BAIL_IF_MACRO(!__PHYSFS_platformDeinit(), NULL, 0);
 
     closeFileHandleList(&openWriteList);
     BAIL_IF_MACRO(!PHYSFS_setWriteDir(NULL), ERR_FILES_STILL_OPEN, 0);