Basic parsing support for MRF files

This commit is contained in:
Disquse
2021-06-12 01:23:15 +03:00
Unverified
parent 458e9d365e
commit fdf2c166f7
4 changed files with 2095 additions and 2 deletions
@@ -197,6 +197,7 @@ namespace CodeWalker.GameFiles
//TestYpts();
//TestYnvs();
//TestYmaps();
//TestMrfs();
//TestPlacements();
//TestDrawables();
//TestHeightmaps();
@@ -4179,6 +4180,29 @@ namespace CodeWalker.GameFiles
}
}
}
public void TestMrfs()
{
foreach (RpfFile file in AllRpfs)
{
foreach (RpfEntry entry in file.AllEntries)
{
try
{
if (entry.NameLower.EndsWith(".mrf"))
{
UpdateStatus(string.Format(entry.Path));
MrfFile mrffile = RpfMan.GetFile<MrfFile>(entry);
if (mrffile != null)
{ }
}
}
catch (Exception ex)
{
UpdateStatus("Error! " + ex.ToString());
}
}
}
}
public void TestPlacements()
{
//int totplacements = 0;