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