PARAM.SFO parsing

This commit is contained in:
Deterous
2023-10-28 23:57:38 +13:00
parent 026e2c1d85
commit dd9945f3a0
5 changed files with 279 additions and 5 deletions
+25
View File
@@ -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");
}
}
}
}
+14
View File
@@ -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>