mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 05:34:45 +08:00
修复 Affinity 计算
This commit is contained in:
@ -527,7 +527,7 @@ class HomeUIModel extends BaseUIModel {
|
||||
}
|
||||
|
||||
doLaunchGame(String launchExe, List<String> args, String installPath,
|
||||
int? processorAffinity) async {
|
||||
String? processorAffinity) async {
|
||||
_isGameRunning[installPath] = true;
|
||||
notifyListeners();
|
||||
try {
|
||||
@ -537,13 +537,14 @@ class HomeUIModel extends BaseUIModel {
|
||||
dPrint('stdout: ${result.stdout}');
|
||||
dPrint('stderr: ${result.stderr}');
|
||||
} else {
|
||||
dPrint("set Affinity === $processorAffinity ");
|
||||
ProcessResult result = await Process.run("cmd.exe", [
|
||||
'/C',
|
||||
'Start',
|
||||
'"StarCitizen"',
|
||||
'/High',
|
||||
'/Affinity',
|
||||
'$processorAffinity',
|
||||
processorAffinity,
|
||||
launchExe,
|
||||
...args
|
||||
]);
|
||||
|
Reference in New Issue
Block a user