1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Throw error if 0.9 bfres are saved

This commit is contained in:
KillzXGaming 2019-06-26 15:18:48 -04:00
parent 1444594fd1
commit d228920614
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -1337,6 +1337,8 @@ namespace FirstPlugin
private void SaveSwitch(MemoryStream mem)
{
var resFile = BFRESRender.ResFileNode.resFile;
if (resFile.VersionMajor2 == 9)
throw new NotImplementedException($"Bfres version does not support saving yet! {resFile.VersionFull}");
resFile.Models.Clear();
resFile.SkeletalAnims.Clear();