Skip to content

Commit 3f309c8

Browse files
committed
Fix SimAnimationTest
1 parent 8b5a27f commit 3f309c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Assets/Scripts/OpenTS2/Engine/Tests/SimAnimationTest.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using OpenTS2.Files;
99
using OpenTS2.Files.Formats.DBPF;
1010
using UnityEngine;
11+
using System.IO;
1112

1213
namespace OpenTS2.Engine.Tests
1314
{
@@ -24,12 +25,13 @@ public class SimAnimationTest : MonoBehaviour
2425

2526
private void Start()
2627
{
28+
Core.InitializeCore();
2729
var contentManager = ContentManager.Instance;
2830

2931
// Load base game assets.
3032
contentManager.AddPackages(
31-
Filesystem.GetPackagesInDirectory(Filesystem.GetPathForProduct(ProductFlags.BaseGame) +
32-
"TSData/Res/Sims3D"));
33+
Filesystem.GetPackagesInDirectory(Path.Combine(Filesystem.GetPathForProduct(ProductFlags.BaseGame),
34+
"TSData/Res/Sims3D")));
3335

3436
// Load all animations involving auskel and put them in the dictionary.
3537
foreach (var animationAsset in contentManager.GetAssetsOfType<ScenegraphAnimationAsset>(TypeIDs.SCENEGRAPH_ANIM))

0 commit comments

Comments
 (0)