X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_vrs.h;h=068f569fa9fbf89b7f8d48690313e91f71ee6020;hb=3bccccc5b1bd97dc63e3caccc800959e9e5948db;hp=9aceda0a8a3c3d633b34e3f69fbac14fc617cd38;hpb=16fee04bfaa2cf218b1a906b0df0ed7e3a5706fa;p=16.git diff --git a/src/lib/16_vrs.h b/src/lib/16_vrs.h index 9aceda0a..068f569f 100755 --- a/src/lib/16_vrs.h +++ b/src/lib/16_vrs.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -22,8 +22,8 @@ #ifndef __16_VRS__ #define __16_VRS__ +#include "src/lib/16_head.h" #include "src/lib/16_vl.h" -#include "src/lib/typdefst.h" //#include //#include #include @@ -34,8 +34,8 @@ struct vrs_container{ // minus header dword data_size; union{ - byte huge *buffer; - struct vrs_header huge *vrs_hdr; + byte far *buffer; + struct vrs_header far *vrs_hdr; }; // Array of corresponding vrl line offsets vrl1_vgax_offset_t **vrl_line_offsets; @@ -46,8 +46,8 @@ struct vrl_container{ // minus header dword data_size; union{ - byte huge *buffer; - struct vrl1_vgax_header huge *vrl_header; + byte far *buffer; + struct vrl1_vgax_header far *vrl_header; }; // Pointer to a corresponding vrl line offsets struct vrl1_vgax_offset_t *line_offsets; @@ -61,7 +61,10 @@ struct vrl_container{ * Out: * + int - 0 on succes, 1 on failure */ -int read_vrs(global_game_variables_t *gvar, char *filename, struct vrs_container *vrs_cont); +void VRS_ReadVRS(char *filename, entity_t *enti, global_game_variables_t *gvar); +void VRS_LoadVRS(char *filename, entity_t *enti, global_game_variables_t *gvar); +void VRS_OpenVRS(char *filename, entity_t *enti, boolean rlsw, global_game_variables_t *gvar); +//int read_vrs(global_game_variables_t *gvar, char *filename, struct vrs_container *vrs_cont); /* Seek and return a specified .vrl blob from .vrs blob in memory * In: