File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,22 +18,6 @@ private static async Task WaitForKey() {
1818 Console . ReadKey ( true ) ;
1919 }
2020 private readonly StructuredOsuMemoryReader osuReader = new ( new ProcessTargetOptions ( "osu!" ) ) ;
21- private T ReadProperty < T > ( object readObj , string propName , T defaultValue = default ) where T : struct {
22- if ( osuReader . TryReadProperty ( readObj , propName , out var readResult ) )
23- return ( T ) readResult ;
24-
25- return defaultValue ;
26- }
27-
28- private T ReadClassProperty < T > ( object readObj , string propName , T defaultValue = default ) where T : class {
29- if ( osuReader . TryReadProperty ( readObj , propName , out var readResult ) )
30- return ( T ) readResult ;
31-
32- return defaultValue ;
33- }
34-
35- private int ReadInt ( object readObj , string propName )
36- => ReadProperty < int > ( readObj , propName , - 5 ) ;
3721
3822 private static async Task osuPlug ( ) {
3923 var client = new ButtplugClient ( "osu!plug" ) ;
You can’t perform that action at this time.
0 commit comments