From 008363ce8f86084c29dfbea1ae8dacbcc9830a4e Mon Sep 17 00:00:00 2001 From: Fatbag Date: Sat, 4 Feb 2012 16:04:40 -0600 Subject: [PATCH] Placing the _build folder in .hgignore so I don't have to rebuild and reupload the binaries. Also fixed a bug in .anim parsing in vbparse. --- Libraries/libvitaboy/anim.cpp | 25 +++++++++++++++++++------ Libraries/libvitaboy/libvitaboy.hpp | 10 ++++++++-- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/Libraries/libvitaboy/anim.cpp b/Libraries/libvitaboy/anim.cpp index 53bd58d..5f50a5c 100644 --- a/Libraries/libvitaboy/anim.cpp +++ b/Libraries/libvitaboy/anim.cpp @@ -96,6 +96,24 @@ void ReadMotion(Animation_t& Animation, Motion_t& Motion){ } } +void ReadPropEntry(KeyValuePair_t& Entry){ + Entry.Key = VBFile.readstring(); + printf(" | | | | | Key: %s\n", Entry.Key); + Entry.Value = VBFile.readstring(); + printf(" | | | | | Value: %s\n", Entry.Value); +} + +void ReadPropEntries(Prop_t& Prop){ + unsigned count = Prop.EntriesCount = VBFile.readint32(); + printf(" | | | | EntriesCount: %u\n", Prop.EntriesCount); + Prop.Entries = (KeyValuePair_t*) malloc(count * sizeof(KeyValuePair_t)); + + for(unsigned i=0; i