Bundle loader refactor (#502)

* Bundle loader refactor

- Made async
- Validate if bundle actually exists, if not throw warning into the console
- Updated mod example

* Cleanup unused var
This commit is contained in:
Jesse
2025-07-22 13:54:06 +02:00
committed by GitHub
parent 7d8c3d041e
commit c852debf2b
4 changed files with 81 additions and 70 deletions
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SPTarkov.Server.Core.Models.Spt.Mod;
namespace SPTarkov.Server.Core.Extensions
{
public static class SptModExtensions
{
public static string GetModPath(this SptMod sptMod)
{
var relativeModPath = Path.GetRelativePath(
Directory.GetCurrentDirectory(),
sptMod.Directory
)
.Replace('\\', '/');
return relativeModPath;
}
}
}