Update README.md
This commit is contained in:
parent
38aa98cece
commit
cad8ae603e
15
README.md
15
README.md
|
@ -2,7 +2,16 @@
|
|||
Super Simple param.sfo parser in C# .NET Framework.
|
||||
|
||||
Usage:
|
||||
Dictionary<string,object> SfoKeys = Sfo.ReadSfo(Stream or Byte\[]);
|
||||
```
|
||||
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"];
|
||||
Byte[] AccountId = (Byte[])SfoKeys["ACCOUNT_ID"];
|
||||
String TitleId = (string)SfoKeys["TITLE_ID"];
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue