PARAM.SFO parsing
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using LibIRD;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace PrintParams
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
string filename = "./PARAM.SFO";
|
||||
|
||||
if (File.Exists(filename))
|
||||
{
|
||||
ParamSFO paramSFO = new ParamSFO("./PARAM.SFO");
|
||||
Console.WriteLine(paramSFO["TITLE_ID"]);
|
||||
paramSFO.Print();
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine(filename + " not found");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net48;net6.0;net7.0</TargetFrameworks>
|
||||
<RuntimeIdentifiers>win-x86;win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
||||
<Version>0.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LibIRD\LibIRD.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user