File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,20 @@ You can view the [documentation](https://timetravelpenguin.github.io/MupenSharp/
32
32
In order to read a .m64 file, you can do the following:
33
33
34
34
``` cs
35
+ using MupenSharp .Models ;
36
+ using MupenSharp .FileParsing ;
37
+ using MupenSharp .Enums ;
38
+
35
39
const string file = " C://path/to/file.m64" ;
36
- M64 m64 = M64Parser .Parse (file );
40
+ M64 m64 = MupenV3Parser .Parse (file );
37
41
38
42
Console .WriteLine ($" Author(s): {m64 .Author }" );
39
- Console .WriteLine ($" ROM name: {m64 .NameOfRom }" );
43
+ Console .WriteLine ($" ROM name: {m64 .RomName }" );
40
44
41
45
var frameCount = 1 ;
42
- foreach (var inputFrame in m64 .Inputs )
46
+ foreach (var inputFrame in m64 .GetControllerInputs ( Controller . ControllerOne ) )
43
47
{
44
- Console .WriteLine ($" Frame {frameCount ++ }:\t {inputFrame }" );
48
+ Console .WriteLine ($" Frame {frameCount ++ }:\t {inputFrame }" );
45
49
}
46
50
```
47
51
You can’t perform that action at this time.
0 commit comments