Sfo.NET/README.md
2020-08-25 05:59:20 +12:00

18 lines
501 B
Markdown

# Sfo.NET
Super Simple param.sfo parser in C# .NET Framework.
Usage:
```
Dictionary<string,object> SfoKeys = Sfo.ReadSfo(File.OpenRead(@"param.sfo"));
```
or
```
Dictionary<string,object> SfoKeys = Sfo.ReadSfo(File.ReadAlLBytes(@"param.sfo"));
```
Reading values:
```
UInt32 AttributeMinor = (UInt32)SfoKeys\["ATTRIBUTE_MINOR"];
Byte[] AccountId = (Byte[])SfoKeys["ACCOUNT_ID"];
String TitleId = (string)SfoKeys["TITLE_ID"];
```