Slight bundle & fileutil refactor: (#524)

- Actually load the bundle cache file now
- Don't read file as string with StreamReader, instead read with ReadAllTextAsync
- Slight refactor to bundle hashing

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
This commit is contained in:
Jesse
2025-07-31 00:23:29 +02:00
committed by GitHub
parent c89c84dff3
commit fc7660b6c8
6 changed files with 67 additions and 28 deletions
@@ -13,7 +13,7 @@ public class SptServerBackgroundService(IReadOnlyList<SptMod> loadedMods, Bundle
{
foreach (var mod in loadedMods)
{
if (mod.ModMetadata?.IsBundleMod == true)
if (mod.ModMetadata.IsBundleMod == true)
{
await bundleLoader.LoadBundlesAsync(mod);
}