Move R8Reader to FileFormats.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#region Copyright & License Information
|
#region Copyright & License Information
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2012 The OpenRA Developers (see AUTHORS)
|
* Copyright 2007-2013 The OpenRA Developers (see AUTHORS)
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
* available to you under the terms of the GNU General Public License
|
* available to you under the terms of the GNU General Public License
|
||||||
* as published by the Free Software Foundation. For more information,
|
* as published by the Free Software Foundation. For more information,
|
||||||
@@ -10,13 +10,13 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace OpenRA.Utility
|
namespace OpenRA.FileFormats
|
||||||
{
|
{
|
||||||
public class R8Image
|
public class R8Image
|
||||||
{
|
{
|
||||||
@@ -28,7 +28,7 @@ namespace OpenRA.Utility
|
|||||||
|
|
||||||
public int ImageHandle;
|
public int ImageHandle;
|
||||||
public int PaletteHandle;
|
public int PaletteHandle;
|
||||||
|
|
||||||
public byte[] Image;
|
public byte[] Image;
|
||||||
|
|
||||||
public int OffsetX;
|
public int OffsetX;
|
||||||
@@ -70,7 +70,7 @@ namespace OpenRA.Utility
|
|||||||
else
|
else
|
||||||
throw new InvalidDataException("Error: {0} bits per pixel are not supported.".F(Bpp));
|
throw new InvalidDataException("Error: {0} bits per pixel are not supported.".F(Bpp));
|
||||||
|
|
||||||
|
|
||||||
if (ID == 1 && PaletteHandle != 0)
|
if (ID == 1 && PaletteHandle != 0)
|
||||||
{
|
{
|
||||||
// read and ignore custom palette
|
// read and ignore custom palette
|
||||||
@@ -146,6 +146,7 @@
|
|||||||
<Compile Include="StreamExts.cs" />
|
<Compile Include="StreamExts.cs" />
|
||||||
<Compile Include="FileFormats\WavLoader.cs" />
|
<Compile Include="FileFormats\WavLoader.cs" />
|
||||||
<Compile Include="Filesystem\D2kSoundResources.cs" />
|
<Compile Include="Filesystem\D2kSoundResources.cs" />
|
||||||
|
<Compile Include="Graphics\R8Reader.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||||
|
|||||||
@@ -76,7 +76,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Command.cs" />
|
<Compile Include="Command.cs" />
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="R8Reader.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user