Move CDFS (iso-parser) to new external project, update upstream info

This commit is contained in:
YoshiRulz 2021-01-02 17:34:13 +10:00
parent 333cae15cd
commit e24c4c3971
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
16 changed files with 94 additions and 10 deletions

View File

@ -1,7 +1,7 @@
using System;
using System.Linq;
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// Helper class to convert big and little endian numbers from a byte

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.IO;
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// Representation of a directory in the file system.

View File

@ -2,7 +2,7 @@
using System.IO;
using System.Linq;
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// This class is meant to parse disk images as specified by:

View File

@ -1,4 +1,4 @@
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// Representation of a file in the file system.

View File

@ -1,4 +1,4 @@
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// Abstract class to represent a file/directory node

View File

@ -1,7 +1,7 @@
using System.Text;
using System.IO;
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// Class to represent the file/directory information read from the disk.

View File

@ -0,0 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<Import Project="../../Common.props" />
</Project>

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.IO;
namespace BizHawk.Emulation.DiscSystem
namespace ISOParser
{
/// <summary>
/// Represents a volume descriptor for a disk image.

View File

@ -0,0 +1,7 @@
Copyright 2010 Craig Prince
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,13 @@
## A C# library for parsing ISO9660 format disk images
Modified copy of `iso-parser`, [archived](https://code.google.com/archive/p/iso-parser/) from Google Code, licensed under the MIT License by [Craig Prince](https://www.craigprince.com/code.html). See `LICENSE.md` for the full text.
The repo description from the Google Code Archive follows.
---
The purpose of this class library is to allow the parsing of ISO9660 format disk images and navigating the file system present in the image.
The result is the ability to find the sector offset and length of file data within the disk image so that the file data can be read easily from that image.
NOTE: We do not currently support any of the extensions to the ISO format, such as Joliet; nor does this code support other image formats, such as UDF.

View File

@ -0,0 +1,56 @@
{
"runtimeTarget": {
"name": ".NETStandard,Version=v2.0/",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"ISOParser/1.0.0": {
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies": "1.0.0",
"NETStandard.Library": "2.0.3"
},
"runtime": {
"ISOParser.dll": {}
}
},
"Microsoft.NETCore.Platforms/1.1.0": {},
"Microsoft.NETFramework.ReferenceAssemblies/1.0.0": {},
"NETStandard.Library/2.0.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
}
}
},
"libraries": {
"ISOParser/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.NETCore.Platforms/1.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
"path": "microsoft.netcore.platforms/1.1.0",
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
},
"Microsoft.NETFramework.ReferenceAssemblies/1.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7D2TMufjGiowmt0E941kVoTIS+GTNzaPopuzM1/1LSaJAdJdBrVP0SkZW7AgDd0a2U1DjsIeaKG1wxGVBNLDMw==",
"path": "microsoft.netframework.referenceassemblies/1.0.0",
"hashPath": "microsoft.netframework.referenceassemblies.1.0.0.nupkg.sha512"
},
"NETStandard.Library/2.0.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"path": "netstandard.library/2.0.3",
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
}
}
}

BIN
References/ISOParser.dll Normal file

Binary file not shown.

View File

@ -7,6 +7,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="ISOParser" HintPath="$(ProjectDir)../../References/ISOParser.dll" Private="true" />
<ProjectReference Include="$(ProjectDir)../BizHawk.Common/BizHawk.Common.csproj" />
</ItemGroup>
</Project>

View File

@ -1,3 +0,0 @@
MIT LICENSE
https://code.google.com/p/iso-parser/

View File

@ -4,6 +4,8 @@ using System.IO;
using System.Collections.Generic;
using System.Linq;
using ISOParser;
namespace BizHawk.Emulation.DiscSystem
{
/// <summary>

View File

@ -3,6 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using ISOParser;
//disc type identification logic
namespace BizHawk.Emulation.DiscSystem