X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vrs.h;h=381b7108dbea75e39c4be851a361960a46d64456;hb=f1cf981c40115d1c81698fe156905ef25fd80c3f;hp=a7ba9d74a7f30c0084af439ca3f6755e96398e46;hpb=56d64244b2a13bc4aabb73d6392ad968528feea8;p=16.git diff --git a/src/lib/16_vrs.h b/src/lib/16_vrs.h index a7ba9d74..381b7108 100755 --- a/src/lib/16_vrs.h +++ b/src/lib/16_vrs.h @@ -31,7 +31,8 @@ struct vrs_container{ // Size of a .vrs lob in memory - dword size; + // minus header + dword data_size; union{ byte huge *buffer; struct vrs_header huge *vrs_hdr; @@ -42,7 +43,8 @@ struct vrs_container{ struct vrl_container{ // Size of a .vrl blob in memory - dword size; + // minus header + dword data_size; union{ byte huge *buffer; struct vrl1_vgax_header huge *vrl_header; @@ -66,10 +68,11 @@ int read_vrs(global_game_variables_t *gvar, char *filename, struct vrs_container * + struct vrs_container *vrs_cont - pointer to the vrs_container * with a loaded .vrs file * + uint16_t id - id of the vrl to retrive +* + struct vrl_container * vrl_cont - pointer to vrl_container to load to * Out: -* struct vrl_container* - a pointer to a vrl_container with a pointer +* int - operation status * to the requested .vrl blob */ -struct vrl_container * get_vrl_by_id(struct vrs_container *vrs_cont, uint16_t id); +int get_vrl_by_id(struct vrs_container *vrs_cont, uint16_t id, struct vrl_container * vrl_cont); #endif