Merge pull request #120 from Disquse/mrf-support

MRF files support
This commit is contained in:
dexyfex
2021-11-07 20:44:33 +11:00
committed by GitHub
Unverified
4 changed files with 2738 additions and 2 deletions
File diff suppressed because it is too large Load Diff
+1
View File
@@ -82,6 +82,7 @@ namespace CodeWalker.GameFiles
Yfd = 26,
Heightmap = 27,
Watermap = 28,
Mrf = 29,
}
@@ -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;