Skip to content

Commit 03a3c8e

Browse files
add return call so vibration doesn't happen forever and add a few comments
1 parent d9cc31a commit 03a3c8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ async Task ControlDevice() {
102102
//Console.WriteLine(processList[0]);
103103
StructuredOsuMemoryReader.GetInstance(new ProcessTargetOptions("osu!"));
104104
if (processList.Length > 0) {
105+
//i really wanted to keep this in, but this would just keep printing forever because it's inside the while loop
106+
//*might* move it outside so i can still have it print to console
105107
//Console.WriteLine("osu's open. good girl :3");
106108
var baseAddresses = new OsuBaseAddresses();
107109
Program prog = new Program();
@@ -138,6 +140,8 @@ async Task ControlDevice() {
138140
await Task.Delay(5000);
139141
await device.VibrateAsync(0);
140142
Console.WriteLine("i hope this taught you a lesson >:3");
143+
//return so we dont vibrate forever
144+
return;
141145
}
142146
catch (Exception e) {
143147
Console.WriteLine($"Problem vibrating: {e}");

0 commit comments

Comments
 (0)