Skip to content

Commit 5133cb1

Browse files
committed
Added Initialise default path
1 parent 597e3cd commit 5133cb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/MapEditor/Managers/AssetManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static class Callbacks
4242

4343
public static bool IsInitialised { get; private set; }
4444

45-
/// <summary>Loads the prefabs from the Rust prefab bundle.</summary>
45+
/// <summary>Loads the Rust bundles into memory.</summary>
4646
/// <param name="bundlesRoot">The file path to the Rust bundles file.</param>
4747
public static void Initialise(string bundlesRoot)
4848
{
@@ -52,6 +52,9 @@ public static void Initialise(string bundlesRoot)
5252
Debug.Log("Bundles already loaded.");
5353
}
5454

55+
/// <summary>Loads the Rust bundles at the currently set directory.</summary>
56+
public static void Initialise() => Initialise(SettingsManager.RustDirectory + SettingsManager.BundlePathExt);
57+
5558
public static void Dispose()
5659
{
5760
if (!Coroutines.IsInitialising && IsInitialised)

0 commit comments

Comments
 (0)