X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vrs.h;h=eae13673e04709473537f21e6625fa0805d201ba;hb=e2dc030c9e52911ed9808a9e4a65bc9e0e9d8e9b;hp=9aceda0a8a3c3d633b34e3f69fbac14fc617cd38;hpb=16fee04bfaa2cf218b1a906b0df0ed7e3a5706fa;p=16.git diff --git a/src/lib/16_vrs.h b/src/lib/16_vrs.h index 9aceda0a..eae13673 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,37 +22,37 @@ #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 #include "src/lib/16_ca.h" - +/* struct vrs_container{ // Size of a .vrs lob in memory // 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; }; - +*//* struct vrl_container{ // Size of a .vrl blob in memory // 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; }; - +*/ /* Read .vrs file into memory * In: * + char *filename - name of the file to load @@ -61,7 +61,12 @@ 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); +void VRS_ReadVRL(char *filename, entity_t *enti, global_game_variables_t *gvar); +void VRS_LoadVRL(char *filename, entity_t *enti, global_game_variables_t *gvar); +void VRS_OpenVRL(char *filename, entity_t *enti, boolean rlsw, global_game_variables_t *gvar); /* Seek and return a specified .vrl blob from .vrs blob in memory * In: