-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This permits rsc resources to be combined with the Content.Client.zip Hybrid ACZ. Also update RT
- Loading branch information
Showing
5 changed files
with
55 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using OpenDreamPackaging; | ||
using Robust.Packaging; | ||
using Robust.Packaging.AssetProcessing; | ||
using Robust.Server.ServerStatus; | ||
|
||
namespace OpenDreamRuntime; | ||
|
||
public sealed class DreamAczProvider : IMagicAczProvider, IFullHybridAczProvider { | ||
private readonly IDependencyCollection _dependencies; | ||
private readonly string _rootPath; | ||
private readonly string[] _resources; | ||
|
||
public DreamAczProvider(IDependencyCollection dependencies, string rootPath, string[] resources) { | ||
_dependencies = dependencies; | ||
_rootPath = rootPath; | ||
_resources = resources; | ||
} | ||
|
||
public async Task Package(AssetPass pass, IPackageLogger logger, CancellationToken cancel) { | ||
var contentDir = DefaultMagicAczProvider.FindContentRootPath(_dependencies); | ||
|
||
await DreamPackaging.WriteResources(contentDir, _rootPath, _resources, pass, logger, cancel); | ||
} | ||
|
||
public Task Package(AssetPass hybridPackageInput, AssetPass output, IPackageLogger logger, CancellationToken cancel) { | ||
var clientAssetGraph = new RobustClientAssetGraph(); | ||
var resourceInput = clientAssetGraph.Input; | ||
output.AddDependency(clientAssetGraph.Output); | ||
output.AddDependency(hybridPackageInput); | ||
|
||
AssetGraph.CalculateGraph( | ||
clientAssetGraph.AllPasses.Concat(new[] { hybridPackageInput, output }).ToArray(), | ||
logger); | ||
|
||
DreamPackaging.WriteRscResources(_rootPath, _resources, resourceInput); | ||
resourceInput.InjectFinished(); | ||
|
||
return Task.CompletedTask; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule RobustToolbox
updated
91 files