mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 14:54:45 +08:00
能效核心屏蔽功能应用到 RSI启动器,以让开发板使用此功能。
This commit is contained in:
@ -537,7 +537,7 @@ class HomeUIModel extends BaseUIModel {
|
||||
dPrint('stdout: ${result.stdout}');
|
||||
dPrint('stderr: ${result.stderr}');
|
||||
} else {
|
||||
dPrint("set Affinity === $processorAffinity ");
|
||||
dPrint("set Affinity === $processorAffinity launchExe === $launchExe");
|
||||
ProcessResult result = await Process.run("cmd.exe", [
|
||||
'/C',
|
||||
'Start',
|
||||
|
@ -220,14 +220,9 @@ class LoginDialogModel extends BaseUIModel {
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
|
||||
await Future.delayed(const Duration(seconds: 3));
|
||||
final confBox = await Hive.openBox("app_conf");
|
||||
final inputGameLaunchECore = int.tryParse(
|
||||
confBox.get("gameLaunch_eCore_count", defaultValue: "0")) ??
|
||||
0;
|
||||
final processorAffinity =
|
||||
await SystemHelper.getCpuAffinity(inputGameLaunchECore);
|
||||
await SystemHelper.getCpuAffinity();
|
||||
|
||||
// TODO 更新启动方式
|
||||
homeUIModel.doLaunchGame(
|
||||
'$installPath\\$executable',
|
||||
["-no_login_dialog", ...launchOptions.toString().split(" ")],
|
||||
|
Reference in New Issue
Block a user