YED parsing progress

This commit is contained in:
dexy
2020-03-02 07:48:30 +11:00
Unverified
parent 30982ef45d
commit ddfce89912
2 changed files with 634 additions and 87 deletions
@@ -186,6 +186,7 @@ namespace CodeWalker.GameFiles
//TestRbfs();
//TestCuts();
//TestYlds();
//TestYeds();
//TestYcds();
//TestYtds();
//TestYbns();
@@ -3199,6 +3200,44 @@ namespace CodeWalker.GameFiles
if (exceptions.Count > 0)
{ }
}
public void TestYeds()
{
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(".yed"))
{
UpdateStatus(string.Format(entry.Path));
YedFile yed = new YedFile(rfe);
RpfMan.LoadFile(yed, rfe);
}
}
#if !DEBUG
catch (Exception ex)
{
UpdateStatus("Error! " + ex.ToString());
exceptions.Add(ex);
}
#endif
}
}
if (exceptions.Count > 0)
{ }
}
public void TestYcds()
{
bool savetest = false;