]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ftepp.c
Major cleanup of platform/fs stuff
[xonotic/gmqcc.git] / ftepp.c
diff --git a/ftepp.c b/ftepp.c
index d2c01df501d2a1b301d076b06226c3d2043ce5fd..a94eb11e1a4730830830c62c407fbe957bbebc10 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1323,7 +1323,7 @@ static void unescape(const char *str, char *out) {
 
 static char *ftepp_include_find_path(const char *file, const char *pathfile)
 {
-    fs_file_t  *fp;
+    FILE *fp;
     char       *filename = NULL;
     const char *last_slash;
     size_t      len;
@@ -1343,9 +1343,9 @@ static char *ftepp_include_find_path(const char *file, const char *pathfile)
     memcpy(vec_add(filename, len+1), file, len);
     vec_last(filename) = 0;
 
-    fp = fs_file_open(filename, "rb");
+    fp = fopen(filename, "rb");
     if (fp) {
-        fs_file_close(fp);
+        fclose(fp);
         return filename;
     }
     vec_free(filename);