ソースを参照

Error subsystem does basic initialization during PHYSFS_init(), now.

Ryan C. Gordon 24 年 前
コミット
d5a699ccd2
1 ファイル変更3 行追加0 行削除
  1. 3 0
      physfs.c

+ 3 - 0
physfs.c

@@ -427,6 +427,9 @@ int PHYSFS_init(const char *argv0)
     } /* if */
     } /* if */
 
 
     initialized = 1;
     initialized = 1;
+
+    /* This makes sure that the error subsystem is initialized. */
+    __PHYSFS_setError(PHYSFS_getLastError());
     return(1);
     return(1);
 } /* PHYSFS_init */
 } /* PHYSFS_init */