X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_vrs.h;h=7b240a7790831017529c8561461291ed44be398f;hb=2accbf2668001e82a8fec1e75f37c195996186b0;hp=a0f306201855ef5b01109ffe5daeb2b150d2d291;hpb=848c772e64209441c696de3d8101f7b3b81f1354;p=16.git
diff --git a/src/lib/16_vrs.h b/src/lib/16_vrs.h
index a0f30620..7b240a77 100755
--- a/src/lib/16_vrs.h
+++ b/src/lib/16_vrs.h
@@ -1,12 +1,35 @@
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see , or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
#ifndef __16_VRS__
#define __16_VRS__
-#include
-#include "hw/vga/vrl.h"
-#include "hw/vga/vrs.h"
+#include "src/lib/16_head.h"
+#include "src/lib/modex16.h"
+//#include
+//#include
+//#include
// Container for .vrs files loaded in memory with useful info
-// Includes:
+// Includes:
// + size of the .vrs blob in memory
// + pointer to the blob/vrs header
// + id of the curent (shown) animation
@@ -14,13 +37,13 @@
// + id of the current (shown) sprite
struct vrs_container{
- unsigned long size;
+ dword size;
union{
- unsigned char *buffer;
+ byte *buffer;
struct vrs_header *vrs_hdr;
};
uint16_t anchor_sprite_id;
- uint16_t current_sprite_id;
+ uint16_t current_sprite_id;
};
// Container for .vrl files loaded in memory with useful info
@@ -28,9 +51,9 @@ struct vrs_container{
// + size of the .vrl blob in memory
// + pointer to the blob/vrl header
struct vrl_container{
- unsigned long size;
+ dword size;
union{
- unsigned char *buffer;
+ byte *buffer;
struct vrl1_vgax_header *vrl_header;
};
};
@@ -38,7 +61,7 @@ struct vrl_container{
// Read .vrs file into memory
// In:
// + char *filename - name of the file to load
-// + struct vrs_container *vrs_cont - pointer to the vrs_container
+// + struct vrs_container *vrs_cont - pointer to the vrs_container
// to load the file into
// Out:
// + int - 0 on succes, 1 on failure
@@ -46,7 +69,7 @@ int read_vrs(char *filename, struct vrs_container *vrs_cont);
// Seek and return a specified .vrl blob from .vrs blob in memory
// In:
-// + struct vrs_container *vrs_cont - pointer to the 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
// Out:
@@ -54,4 +77,4 @@ int read_vrs(char *filename, struct vrs_container *vrs_cont);
// to the requested .vrl blob
struct vrl_container* get_vrl_by_id(struct vrs_container *vrs_cont, uint16_t id);
-#endif
+#endif