using a texture for the grid is better
[vrfileman] / src / assman_desktop.c
diff --git a/src/assman_desktop.c b/src/assman_desktop.c
new file mode 100644 (file)
index 0000000..33e1eba
--- /dev/null
@@ -0,0 +1,38 @@
+#include <stdio.h>
+#include "assman.h"
+
+ass_file *ass_fopen(const char *fname, const char *mode)
+{
+       return (ass_file*)fopen(fname, mode);
+}
+
+void ass_fclose(ass_file *fp)
+{
+       fclose((FILE*)fp);
+}
+
+long ass_fseek(ass_file *fp, long offs, int whence)
+{
+       fseek((FILE*)fp, offs, whence);
+       return ftell((FILE*)fp);
+}
+
+long ass_ftell(ass_file *fp)
+{
+       return ftell((FILE*)fp);
+}
+
+int ass_feof(ass_file *fp)
+{
+       return feof((FILE*)fp);
+}
+
+size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
+{
+       return fread(buf, size, count, (FILE*)fp);
+}
+
+int ass_ungetc(int c, ass_file *fp)
+{
+       return ungetc(c, (FILE*)fp);
+}