Move D2kSoundResources to Mods.D2k dll.

This commit is contained in:
Paul Chote
2017-05-01 18:48:23 +01:00
parent 0222ea675c
commit a3f7641b68
3 changed files with 5 additions and 4 deletions

View File

@@ -261,7 +261,6 @@
<Compile Include="ExternalMods.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="FileSystem\D2kSoundResources.cs" />
<Compile Include="FileSystem\Folder.cs" />
<Compile Include="FileSystem\InstallShieldPackage.cs" />
<Compile Include="FileSystem\MixFile.cs" />

View File

@@ -87,6 +87,7 @@
<Compile Include="UtilityCommands\ImportD2kMapCommand.cs" />
<Compile Include="Traits\World\D2kEditorResourceLayer.cs" />
<Compile Include="Lint\CheckImportActors.cs" />
<Compile Include="PackageLoaders\D2kSoundResources.cs" />
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>mkdir "$(SolutionDir)mods/d2k/"

View File

@@ -12,8 +12,9 @@
using System;
using System.Collections.Generic;
using System.IO;
using OpenRA.FileSystem;
namespace OpenRA.FileSystem
namespace OpenRA.Mods.D2k.PackageLoaders
{
public class D2kSoundResourcesLoader : IPackageLoader
{
@@ -70,7 +71,7 @@ namespace OpenRA.FileSystem
return new MemoryStream(s.ReadBytes((int)e.Length));
}
public IReadOnlyPackage OpenPackage(string filename, FileSystem context)
public IReadOnlyPackage OpenPackage(string filename, FileSystem.FileSystem context)
{
// Not implemented
return null;
@@ -87,7 +88,7 @@ namespace OpenRA.FileSystem
}
}
bool IPackageLoader.TryParsePackage(Stream s, string filename, FileSystem context, out IReadOnlyPackage package)
bool IPackageLoader.TryParsePackage(Stream s, string filename, FileSystem.FileSystem context, out IReadOnlyPackage package)
{
if (!filename.EndsWith(".rs", StringComparison.InvariantCultureIgnoreCase))
{