]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_vrs.h
hmmm layers in map_t ....
[16.git] / src / lib / 16_vrs.h
index 9aceda0a8a3c3d633b34e3f69fbac14fc617cd38..068f569fa9fbf89b7f8d48690313e91f71ee6020 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
@@ -22,8 +22,8 @@
 #ifndef __16_VRS__\r
 #define __16_VRS__\r
 \r
+#include "src/lib/16_head.h"\r
 #include "src/lib/16_vl.h"\r
-#include "src/lib/typdefst.h"\r
 //#include <hw/cpu/cpu.h>\r
 //#include <hw/dos/dos.h>\r
 #include <hw/vga/vrl.h>\r
@@ -34,8 +34,8 @@ struct vrs_container{
        // minus header\r
        dword data_size;\r
        union{\r
-               byte huge *buffer;\r
-               struct vrs_header huge *vrs_hdr;\r
+               byte far *buffer;\r
+               struct vrs_header far *vrs_hdr;\r
        };\r
        // Array of corresponding vrl line offsets\r
        vrl1_vgax_offset_t **vrl_line_offsets;\r
@@ -46,8 +46,8 @@ struct vrl_container{
        // minus header\r
        dword data_size;\r
        union{\r
-               byte huge *buffer;\r
-               struct vrl1_vgax_header huge *vrl_header;\r
+               byte far *buffer;\r
+               struct vrl1_vgax_header far *vrl_header;\r
        };\r
        // Pointer to a corresponding vrl line offsets struct\r
        vrl1_vgax_offset_t *line_offsets;\r
@@ -61,7 +61,10 @@ struct vrl_container{
 * Out:\r
 * + int - 0 on succes, 1 on failure\r
 */\r
-int read_vrs(global_game_variables_t *gvar, char *filename, struct vrs_container *vrs_cont);\r
+void VRS_ReadVRS(char *filename, entity_t *enti, global_game_variables_t *gvar);\r
+void VRS_LoadVRS(char *filename, entity_t *enti, global_game_variables_t *gvar);\r
+void VRS_OpenVRS(char *filename, entity_t *enti, boolean rlsw, global_game_variables_t *gvar);\r
+//int read_vrs(global_game_variables_t *gvar, char *filename, struct vrs_container *vrs_cont);\r
 \r
 /* Seek and return a specified .vrl blob from .vrs blob in memory\r
 * In:\r