Added classes for cutscenes

This commit is contained in:
dexy
2019-11-22 23:29:09 +11:00
Unverified
parent 1cb94d6ba6
commit fbf603f657
4 changed files with 554 additions and 14 deletions
@@ -180,6 +180,7 @@ namespace CodeWalker.GameFiles
//TestAudioYmts();
//TestMetas();
//TestPsos();
//TestCuts();
//TestYcds();
//TestYtds();
//TestYbns();
@@ -2962,6 +2963,47 @@ namespace CodeWalker.GameFiles
{
}
}
public void TestCuts()
{
var exceptions = new List<Exception>();
foreach (RpfFile file in AllRpfs)
{
foreach (RpfEntry entry in file.AllEntries)
{
#if !DEBUG
try
#endif
{
var rfe = entry as RpfFileEntry;
if (rfe == null) continue;
if (rfe.NameLower.EndsWith(".cut"))
{
UpdateStatus(string.Format(entry.Path));
CutFile cut = new CutFile(rfe);
RpfMan.LoadFile(cut, rfe);
//PsoTypes.EnsurePsoTypes(cut.Pso);
}
}
#if !DEBUG
catch (Exception ex)
{
UpdateStatus("Error! " + ex.ToString());
exceptions.Add(ex);
}
#endif
}
}
string str = PsoTypes.GetTypesInitString();
if (!string.IsNullOrEmpty(str))
{
}
}
public void TestYcds()
{
var errorfiles = new List<YcdFile>();