summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLywx <kiritodev01@gmail.com>2024-03-10 21:40:04 -0600
committerGitHub <noreply@github.com>2024-03-10 21:40:04 -0600
commit62b523809e7e7242ad6adc6f9a689a58f8e4bad4 (patch)
tree723f0cdbc58f31060092f0ad4fd8e849dbd8d967
parent7ef1cc98ba219cb86e973041e51a7193b5fe6e42 (diff)
Removed throws on AnimData for now
-rw-r--r--src/factories/sf64/AnimFactory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/factories/sf64/AnimFactory.cpp b/src/factories/sf64/AnimFactory.cpp
index 0ae299a..f054d76 100644
--- a/src/factories/sf64/AnimFactory.cpp
+++ b/src/factories/sf64/AnimFactory.cpp
@@ -9,10 +9,10 @@
SF64::AnimData::AnimData(int16_t frameCount, int16_t limbCount, uint32_t dataOffset, std::vector<int16_t> frameData, uint32_t keyOffset, std::vector<JointKey> jointKeys): mFrameCount(frameCount), mLimbCount(limbCount), mDataOffset(dataOffset), mFrameData(std::move(frameData)), mKeyOffset(keyOffset), mJointKeys(std::move(jointKeys)) {
if((mDataOffset + sizeof(mFrameData) > mKeyOffset) && (mKeyOffset + sizeof(mJointKeys) > mDataOffset)) {
- throw std::runtime_error("Data and Key offsets overlap");
+ SPDLOG_ERROR("Data and Key offsets overlap");
}
if(mJointKeys.size() != limbCount + 1) {
- throw std::runtime_error("Joint Key count does not match Limb count");
+ SPDLOG_ERROR("Joint Key count does not match Limb count");
}
if(frameData.size() > 0 && frameData[0] != 0){
SPDLOG_INFO("Found non-zero frame data on first frame");
@@ -161,4 +161,4 @@ std::optional<std::shared_ptr<IParsedData>> SF64::AnimFactory::parse(std::vector
}
return std::make_shared<AnimData>(frameCount, limbCount, dataOffset, frameData, keyOffset, jointKeys);
-} \ No newline at end of file
+}