Move D2kSoundResources to Mods.D2k dll.
This commit is contained in:
@@ -261,7 +261,6 @@
|
|||||||
<Compile Include="ExternalMods.cs" />
|
<Compile Include="ExternalMods.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="FileSystem\D2kSoundResources.cs" />
|
|
||||||
<Compile Include="FileSystem\Folder.cs" />
|
<Compile Include="FileSystem\Folder.cs" />
|
||||||
<Compile Include="FileSystem\InstallShieldPackage.cs" />
|
<Compile Include="FileSystem\InstallShieldPackage.cs" />
|
||||||
<Compile Include="FileSystem\MixFile.cs" />
|
<Compile Include="FileSystem\MixFile.cs" />
|
||||||
|
|||||||
@@ -87,6 +87,7 @@
|
|||||||
<Compile Include="UtilityCommands\ImportD2kMapCommand.cs" />
|
<Compile Include="UtilityCommands\ImportD2kMapCommand.cs" />
|
||||||
<Compile Include="Traits\World\D2kEditorResourceLayer.cs" />
|
<Compile Include="Traits\World\D2kEditorResourceLayer.cs" />
|
||||||
<Compile Include="Lint\CheckImportActors.cs" />
|
<Compile Include="Lint\CheckImportActors.cs" />
|
||||||
|
<Compile Include="PackageLoaders\D2kSoundResources.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/d2k/"
|
<PostBuildEvent>mkdir "$(SolutionDir)mods/d2k/"
|
||||||
|
|||||||
@@ -12,8 +12,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using OpenRA.FileSystem;
|
||||||
|
|
||||||
namespace OpenRA.FileSystem
|
namespace OpenRA.Mods.D2k.PackageLoaders
|
||||||
{
|
{
|
||||||
public class D2kSoundResourcesLoader : IPackageLoader
|
public class D2kSoundResourcesLoader : IPackageLoader
|
||||||
{
|
{
|
||||||
@@ -70,7 +71,7 @@ namespace OpenRA.FileSystem
|
|||||||
return new MemoryStream(s.ReadBytes((int)e.Length));
|
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
|
// Not implemented
|
||||||
return null;
|
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))
|
if (!filename.EndsWith(".rs", StringComparison.InvariantCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user