Bunch of fixes to get MP3 exports working on a basic level; lots of fixes still needed

This commit is contained in:
Aruki
2017-02-18 19:41:39 -07:00
parent 68840e69f9
commit 5485d42b56
30 changed files with 106 additions and 75 deletions

View File

@@ -76,6 +76,12 @@ public:
// Font
if (TagName == L"font")
{
if (Game() >= eCorruptionProto)
{
ASSERT(ParamString.StartsWith(L"0x"));
ParamString = ParamString.ChopFront(2);
}
ASSERT(ParamString.Size() == IDLength * 2);
pTree->AddDependency( CAssetID::FromString(ParamString) );
}
@@ -115,6 +121,13 @@ public:
if (iParam >= TexturesStart)
{
TWideString Param = *Iter;
if (Game() >= eCorruptionProto)
{
ASSERT(Param.StartsWith(L"0x"));
Param = Param.ChopFront(2);
}
ASSERT(Param.Size() == IDLength * 2);
pTree->AddDependency( CAssetID::FromString(Param) );
}