Sfo.NET/README.md

18 lines
500 B
Markdown
Raw Normal View History

2020-08-24 17:51:40 +00:00
# Sfo.NET
2020-08-24 17:56:02 +00:00
Super Simple param.sfo parser in C# .NET Framework.
2020-08-24 17:57:43 +00:00
Usage:
2020-08-24 17:59:20 +00:00
```
Dictionary<string,object> SfoKeys = Sfo.ReadSfo(File.OpenRead(@"param.sfo"));
```
or
```
Dictionary<string,object> SfoKeys = Sfo.ReadSfo(File.ReadAlLBytes(@"param.sfo"));
```
Reading values:
```
2020-08-24 18:05:37 +00:00
UInt32 AttributeMinor = (UInt32)SfoKeys["ATTRIBUTE_MINOR"];
2020-08-24 17:59:20 +00:00
Byte[] AccountId = (Byte[])SfoKeys["ACCOUNT_ID"];
2020-08-24 18:05:37 +00:00
String TitleId = (String)SfoKeys["TITLE_ID"];
2020-08-24 17:59:20 +00:00
```