Skip to content

Commit

Permalink
Re-enable CVX and update utils
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Sep 1, 2024
1 parent 738134b commit be0c7fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions IntelOrca.Biohazard.BioRand/RE2/Re2NpcHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,13 @@ public void CreateEmdFile(byte type, string pldPath, string baseEmdPath, string
var zombiePath = fileRepository.GetDataPath("pl0/emd0/em010.emd");
var zombie = new EmdFile(BioVersion.Biohazard2, zombiePath);
var edd = (Edd1)zombie.GetEdd(1);
var offset = edd.Animations[22].Offset;
var eddBuilder = edd.ToBuilder();
eddBuilder.Animations[0] = eddBuilder.Animations[22];
eddBuilder.Animations[0].Frames = eddBuilder.Animations[0].Frames.Take(1).ToArray();

var firstFrame = eddBuilder.Animations[0].Frames.First();
eddBuilder.Animations[0].Frames.Clear();
eddBuilder.Animations[0].Frames.Add(firstFrame);

eddBuilder.Animations.RemoveRange(1, eddBuilder.Animations.Count - 1);
emdFile.SetEdd(0, eddBuilder.ToEdd());
var emr = pldFile.GetEmr(0)
Expand Down
2 changes: 1 addition & 1 deletion biohazard-utils
1 change: 0 additions & 1 deletion biorand/biorand.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<RootNamespace>IntelOrca.Biohazard.BioRand</RootNamespace>
<ApplicationIcon>biorand.ico</ApplicationIcon>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>DISABLE_CVX;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Content Include="biorand.ico" />
Expand Down

0 comments on commit be0c7fd

Please sign in to comment.