diff --git a/Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs b/Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs index d6d03834..94563b9d 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))