Move 7z stuff and HawkFile to client.common

This commit is contained in:
adelikat 2013-10-24 23:04:29 +00:00
parent 80f0c75a41
commit f1089e214c
53 changed files with 61 additions and 51 deletions

View File

@ -26,7 +26,7 @@
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE;DOTNET20;UNMANAGED;COMPRESS</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
@ -44,12 +44,49 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="7z\ArchiveEmulationStreamProxy.cs" />
<Compile Include="7z\ArchiveExtractCallback.cs" />
<Compile Include="7z\ArchiveOpenCallback.cs" />
<Compile Include="7z\ArchiveUpdateCallback.cs" />
<Compile Include="7z\COM.cs" />
<Compile Include="7z\Common.cs" />
<Compile Include="7z\EventArgs.cs" />
<Compile Include="7z\Exceptions.cs" />
<Compile Include="7z\FileSignatureChecker.cs" />
<Compile Include="7z\Formats.cs" />
<Compile Include="7z\LibraryFeature.cs" />
<Compile Include="7z\LibraryManager.cs" />
<Compile Include="7z\LzmaDecodeStream.cs" />
<Compile Include="7z\LzmaEncodeStream.cs" />
<Compile Include="7z\LzmaProgressCallback.cs" />
<Compile Include="7z\NativeMethods.cs" />
<Compile Include="7z\sdk\Common\CRC.cs" />
<Compile Include="7z\sdk\Common\InBuffer.cs" />
<Compile Include="7z\sdk\Common\OutBuffer.cs" />
<Compile Include="7z\sdk\Compress\LZMA\LzmaBase.cs" />
<Compile Include="7z\sdk\Compress\LZMA\LzmaDecoder.cs" />
<Compile Include="7z\sdk\Compress\LZMA\LzmaEncoder.cs" />
<Compile Include="7z\sdk\Compress\LZ\IMatchFinder.cs" />
<Compile Include="7z\sdk\Compress\LZ\LzBinTree.cs" />
<Compile Include="7z\sdk\Compress\LZ\LzInWindow.cs" />
<Compile Include="7z\sdk\Compress\LZ\LzOutWindow.cs" />
<Compile Include="7z\sdk\Compress\RangeCoder\RangeCoder.cs" />
<Compile Include="7z\sdk\Compress\RangeCoder\RangeCoderBit.cs" />
<Compile Include="7z\sdk\Compress\RangeCoder\RangeCoderBitTree.cs" />
<Compile Include="7z\sdk\ICoder.cs" />
<Compile Include="7z\SevenZipCompressor.cs" />
<Compile Include="7z\SevenZipCompressorAsynchronous.cs" />
<Compile Include="7z\SevenZipExtractor.cs" />
<Compile Include="7z\SevenZipExtractorAsynchronous.cs" />
<Compile Include="7z\SevenZipSfx.cs" />
<Compile Include="7z\StreamWrappers.cs" />
<Compile Include="config\Binding.cs" /> <Compile Include="config\Binding.cs" />
<Compile Include="config\Config.cs" /> <Compile Include="config\Config.cs" />
<Compile Include="config\ConfigService.cs" /> <Compile Include="config\ConfigService.cs" />
<Compile Include="CoreFileProvider.cs" /> <Compile Include="CoreFileProvider.cs" />
<Compile Include="FirmwareManager.cs" /> <Compile Include="FirmwareManager.cs" />
<Compile Include="Global.cs" /> <Compile Include="Global.cs" />
<Compile Include="HawkFile.cs" />
<Compile Include="helpers\InputValidate.cs" /> <Compile Include="helpers\InputValidate.cs" />
<Compile Include="KeyTurbo.cs" /> <Compile Include="KeyTurbo.cs" />
<Compile Include="movie\InputAdapters.cs" /> <Compile Include="movie\InputAdapters.cs" />
@ -74,6 +111,21 @@
<Name>BizHawk.Emulation</Name> <Name>BizHawk.Emulation</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="7z\arch\Test.bzip2.7z" />
<None Include="7z\arch\Test.lzma.7z" />
<None Include="7z\arch\Test.lzma2.7z" />
<None Include="7z\arch\Test.ppmd.7z" />
<None Include="7z\arch\Test.rar" />
<None Include="7z\arch\Test.tar" />
<None Include="7z\arch\Test.txt.bz2" />
<None Include="7z\arch\Test.txt.gz" />
<None Include="7z\arch\Test.txt.xz" />
<None Include="7z\arch\Test.zip" />
</ItemGroup>
<ItemGroup>
<Content Include="7z\arch\Test.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
namespace BizHawk.MultiClient namespace BizHawk.Client.Common
{ {
//todo: //todo:
//split into "bind" and "open (the bound thing)" //split into "bind" and "open (the bound thing)"

View File

@ -4,6 +4,8 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using BizHawk.Client.Common;
namespace BizHawk.MultiClient namespace BizHawk.MultiClient
{ {
public partial class ArchiveChooser : Form public partial class ArchiveChooser : Form

View File

@ -105,42 +105,6 @@
<Compile Include="..\VersionInfo.cs"> <Compile Include="..\VersionInfo.cs">
<Link>VersionInfo.cs</Link> <Link>VersionInfo.cs</Link>
</Compile> </Compile>
<Compile Include="7z\ArchiveEmulationStreamProxy.cs" />
<Compile Include="7z\ArchiveExtractCallback.cs" />
<Compile Include="7z\ArchiveOpenCallback.cs" />
<Compile Include="7z\ArchiveUpdateCallback.cs" />
<Compile Include="7z\COM.cs" />
<Compile Include="7z\Common.cs" />
<Compile Include="7z\EventArgs.cs" />
<Compile Include="7z\Exceptions.cs" />
<Compile Include="7z\FileSignatureChecker.cs" />
<Compile Include="7z\Formats.cs" />
<Compile Include="7z\LibraryFeature.cs" />
<Compile Include="7z\LibraryManager.cs" />
<Compile Include="7z\LzmaDecodeStream.cs" />
<Compile Include="7z\LzmaEncodeStream.cs" />
<Compile Include="7z\LzmaProgressCallback.cs" />
<Compile Include="7z\NativeMethods.cs" />
<Compile Include="7z\sdk\Common\CRC.cs" />
<Compile Include="7z\sdk\Common\InBuffer.cs" />
<Compile Include="7z\sdk\Common\OutBuffer.cs" />
<Compile Include="7z\sdk\Compress\LZMA\LzmaBase.cs" />
<Compile Include="7z\sdk\Compress\LZMA\LzmaDecoder.cs" />
<Compile Include="7z\sdk\Compress\LZMA\LzmaEncoder.cs" />
<Compile Include="7z\sdk\Compress\LZ\IMatchFinder.cs" />
<Compile Include="7z\sdk\Compress\LZ\LzBinTree.cs" />
<Compile Include="7z\sdk\Compress\LZ\LzInWindow.cs" />
<Compile Include="7z\sdk\Compress\LZ\LzOutWindow.cs" />
<Compile Include="7z\sdk\Compress\RangeCoder\RangeCoder.cs" />
<Compile Include="7z\sdk\Compress\RangeCoder\RangeCoderBit.cs" />
<Compile Include="7z\sdk\Compress\RangeCoder\RangeCoderBitTree.cs" />
<Compile Include="7z\sdk\ICoder.cs" />
<Compile Include="7z\SevenZipCompressor.cs" />
<Compile Include="7z\SevenZipCompressorAsynchronous.cs" />
<Compile Include="7z\SevenZipExtractor.cs" />
<Compile Include="7z\SevenZipExtractorAsynchronous.cs" />
<Compile Include="7z\SevenZipSfx.cs" />
<Compile Include="7z\StreamWrappers.cs" />
<Compile Include="AboutBox.cs"> <Compile Include="AboutBox.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -319,7 +283,6 @@
<Compile Include="DisplayManager\DisplayManager.cs" /> <Compile Include="DisplayManager\DisplayManager.cs" />
<Compile Include="DisplayManager\Filters\Hq2x.cs" /> <Compile Include="DisplayManager\Filters\Hq2x.cs" />
<Compile Include="GlobalWinF.cs" /> <Compile Include="GlobalWinF.cs" />
<Compile Include="HawkFile.cs" />
<Compile Include="Input\ControllerBinding.cs" /> <Compile Include="Input\ControllerBinding.cs" />
<Compile Include="Input\GamePad.cs" Condition=" '$(OS)' == 'Windows_NT' " /> <Compile Include="Input\GamePad.cs" Condition=" '$(OS)' == 'Windows_NT' " />
<Compile Include="Input\GamePad360.cs" /> <Compile Include="Input\GamePad360.cs" />
@ -390,6 +353,7 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RomGame.cs" />
<Compile Include="tools\Cheats\CheatEdit.cs"> <Compile Include="tools\Cheats\CheatEdit.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
@ -1008,16 +972,6 @@
<EmbeddedResource Include="tools\Watch\WatchEditor.resx"> <EmbeddedResource Include="tools\Watch\WatchEditor.resx">
<DependentUpon>WatchEditor.cs</DependentUpon> <DependentUpon>WatchEditor.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<None Include="7z\arch\Test.bzip2.7z" />
<None Include="7z\arch\Test.lzma.7z" />
<None Include="7z\arch\Test.lzma2.7z" />
<None Include="7z\arch\Test.ppmd.7z" />
<None Include="7z\arch\Test.rar" />
<None Include="7z\arch\Test.tar" />
<None Include="7z\arch\Test.txt.bz2" />
<None Include="7z\arch\Test.txt.gz" />
<None Include="7z\arch\Test.txt.xz" />
<None Include="7z\arch\Test.zip" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@ -1037,7 +991,6 @@
<DependentUpon>InputPrompt.cs</DependentUpon> <DependentUpon>InputPrompt.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="RenderPanel.cs" /> <Compile Include="RenderPanel.cs" />
<Compile Include="RomGame.cs" />
<Compile Include="ScreenSaver.cs" /> <Compile Include="ScreenSaver.cs" />
<Compile Include="Sound.cs" /> <Compile Include="Sound.cs" />
<Compile Include="tools\TAStudio.cs"> <Compile Include="tools\TAStudio.cs">
@ -1237,7 +1190,6 @@
<None Include="images\Both.png" /> <None Include="images\Both.png" />
<None Include="config\ControllerImages\A78Joystick.png" /> <None Include="config\ControllerImages\A78Joystick.png" />
<None Include="config\ControllerImages\IntVController.png" /> <None Include="config\ControllerImages\IntVController.png" />
<Content Include="7z\arch\Test.txt" />
<Content Include="config\ControllerImages\N64.png" /> <Content Include="config\ControllerImages\N64.png" />
<Content Include="config\ControllerImages\SaturnController.jpg" /> <Content Include="config\ControllerImages\SaturnController.jpg" />
<None Include="images\addWatch.ico" /> <None Include="images\addWatch.ico" />

View File

@ -1,6 +1,8 @@
using System; using System;
using System.Globalization; using System.Globalization;
using BizHawk.Client.Common;
namespace BizHawk.MultiClient namespace BizHawk.MultiClient
{ {
public class RomGame public class RomGame

View File

@ -5,6 +5,8 @@ using System.Text;
using System.IO; using System.IO;
using System.Xml; using System.Xml;
using BizHawk.Client.Common;
namespace BizHawk.MultiClient namespace BizHawk.MultiClient
{ {
public class XmlGame public class XmlGame