changed scrcpy path for adb on linux

This commit is contained in:
Your Name
2020-08-17 13:31:49 +01:00
parent 26be1764d2
commit a0d77146ae
8 changed files with 60 additions and 45 deletions
+6 -7
View File
@@ -66,6 +66,7 @@ export class ToolsComponent implements OnInit {
CA = CA;
CR = CR;
GPU = GPU;
FR = GU;
pavlovName;
constructor(
public appService: AppService,
@@ -111,6 +112,11 @@ export class ToolsComponent implements OnInit {
this.statusService.showStatus('CPU/GPU level set OK!!');
});
}
setFullRate(fullRate: GU) {
this.adbService.runAdbCommand('adb shell setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0)).then(() => {
this.statusService.showStatus('Guardian pause set OK!!');
});
}
setGuardian(guardian: GU) {
this.adbService.runAdbCommand('adb shell setprop debug.oculus.guardian_pause ' + (guardian === GU.ON ? 1 : 0)).then(() => {
this.statusService.showStatus('Guardian pause set OK!!');
@@ -250,11 +256,4 @@ export class ToolsComponent implements OnInit {
}
});
}
setHideNSFW() {
if (this.appService.hideNSFW) {
localStorage.setItem('hideNSFW', 'true');
} else {
localStorage.removeItem('hideNSFW');
}
}
}