- add: zip content support

This commit is contained in:
2026-01-16 21:02:34 +03:00
parent 15e4e3fbd7
commit ff31412719
10 changed files with 98 additions and 45 deletions

View File

@@ -6,7 +6,6 @@ using Nebula.Shared;
using Nebula.Shared.Models;
using Nebula.Shared.Services;
using Nebula.Shared.Utils;
using Robust.LoaderApi;
namespace Nebula.Launcher.ProcessHelper;
@@ -22,8 +21,7 @@ public sealed class GameRunnerPreparer(IServiceProvider provider, ContentService
if (engine is null)
throw new Exception("Engine version not found: " + buildInfo.BuildInfo.Build.EngineVersion);
var hashApi = await contentService.EnsureItems(buildInfo.RobustManifestInfo, loadingHandlerFactory, cancellationToken);
var hashApi = await contentService.EnsureItems(buildInfo, loadingHandlerFactory, cancellationToken);
if (hashApi.TryOpen("manifest.yml", out var stream))
{

View File

@@ -57,7 +57,7 @@ public class ProcessRunHandler : IDisposable
_processInfoTask.Wait();
}
_process = Process.Start(_processInfo!);
_process = Process.Start(_processInfo ?? throw new Exception("Process info is null, please try again."));
if (_process is null) return;