#include "libvitaboy.hpp" static unsigned bonenumber = 0; void ReadSkeleton(Skeleton_t& Skeleton){ printf("\n========== Skeleton ==========\n"); Skeleton.Version = VBFile.readint32(); printf("Version: %u\n", Skeleton.Version); Skeleton.Name = VBFile.readstring(); printf("Name: %s\n", Skeleton.Name); Skeleton.BoneCount = VBFile.readint16(); printf("BoneCount: %u\n", Skeleton.BoneCount); Skeleton.Bones = (Bone_t*) malloc(Skeleton.BoneCount * sizeof(Bone_t)); for(unsigned i=0; i