mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 15:22:27 +02:00
49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using Robust.Shared.ContentPack;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.UnitTesting
|
|
{
|
|
internal sealed class TestingModLoader : BaseModLoader, IModLoaderInternal
|
|
{
|
|
public Assembly[] Assemblies { get; set; } = Array.Empty<Assembly>();
|
|
|
|
public bool TryLoadModulesFrom(ResourcePath mountPath, string filterPrefix)
|
|
{
|
|
foreach (var assembly in Assemblies)
|
|
{
|
|
InitMod(assembly);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
public void LoadGameAssembly(Stream assembly, Stream? symbols = null)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public void LoadGameAssembly(string diskPath)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public bool TryLoadAssembly(string assemblyName)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public void SetUseLoadContext(bool useLoadContext)
|
|
{
|
|
// Nada.
|
|
}
|
|
|
|
public void SetEnableSandboxing(bool sandboxing)
|
|
{
|
|
// Nada.
|
|
}
|
|
}
|
|
}
|