2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Remaining CFBStreamedAnimReader imps

This commit is contained in:
Jack Andersen
2016-08-28 09:57:55 -10:00
parent 6d35a656fd
commit b4b19d460c
7 changed files with 249 additions and 15 deletions

View File

@@ -51,7 +51,16 @@ std::shared_ptr<IAnimReader>
CAllFormatsAnimSource::GetNewReader(const TLockedToken<CAllFormatsAnimSource>& tok,
const CCharAnimTime& startTime)
{
return std::make_shared<CAnimSourceReader>(tok, startTime);
switch (tok->x0_format)
{
case EAnimFormat::Uncompressed:
return std::make_shared<CAnimSourceReader>(tok, startTime);
case EAnimFormat::BitstreamCompressed:
case EAnimFormat::BitstreamCompressed24:
return std::make_shared<CFBStreamedAnimReader>(tok, startTime);
default: break;
}
return {};
}
CAllFormatsAnimSource::CAllFormatsAnimSource(CInputStream& in,