]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - pak.c
More cleanups
[xonotic/gmqcc.git] / pak.c
diff --git a/pak.c b/pak.c
index ba820ef2f98b9853a47d3a1c4fc81084bee1279a..c7974b51fb95da033777350de45a35f890e3af7a 100644 (file)
--- a/pak.c
+++ b/pak.c
@@ -125,7 +125,7 @@ static void pak_tree_build(const char *entry) {
 typedef struct {
     pak_directory_t *directories;
     pak_header_t     header;
-    FILE            *handle;
+    fs_file_t       *handle;
     bool             insert;
 } pak_file_t;
 
@@ -267,7 +267,7 @@ static bool pak_extract_one(pak_file_t *pak, const char *file, const char *outdi
     pak_directory_t *dir   = NULL;
     unsigned char   *dat   = NULL;
     char            *local = NULL;
-    FILE            *out   = NULL;
+    fs_file_t       *out   = NULL;
 
     if (!pak_exists(pak, file, &dir)) {
         return false;
@@ -334,7 +334,7 @@ static bool pak_insert_one(pak_file_t *pak, const char *file) {
     pak_directory_t dir;
     unsigned char  *dat;
     long            len;
-    FILE           *fp;
+    fs_file_t      *fp;
 
     /*
      * We don't allow insertion on files that already exist within the