From 3f309c8aa873c2746275537cda84ba2b4a58fd21 Mon Sep 17 00:00:00 2001 From: Nahuel Rocchetti Date: Tue, 3 Sep 2024 22:17:10 -0300 Subject: [PATCH] Fix SimAnimationTest --- Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs b/Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs index d6d0383..94563b9 100644 --- a/Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs +++ b/Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs @@ -8,6 +8,7 @@ using OpenTS2.Files; using OpenTS2.Files.Formats.DBPF; using UnityEngine; +using System.IO; namespace OpenTS2.Engine.Tests { @@ -24,12 +25,13 @@ public class SimAnimationTest : MonoBehaviour private void Start() { + Core.InitializeCore(); var contentManager = ContentManager.Instance; // Load base game assets. contentManager.AddPackages( - Filesystem.GetPackagesInDirectory(Filesystem.GetPathForProduct(ProductFlags.BaseGame) + - "TSData/Res/Sims3D")); + Filesystem.GetPackagesInDirectory(Path.Combine(Filesystem.GetPathForProduct(ProductFlags.BaseGame), + "TSData/Res/Sims3D"))); // Load all animations involving auskel and put them in the dictionary. foreach (var animationAsset in contentManager.GetAssetsOfType(TypeIDs.SCENEGRAPH_ANIM))