mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
10.0.9
This commit is contained in:
@@ -30,4 +30,5 @@ const String kShippingExe = "FortniteClient-Win64-Shipping.exe";
|
||||
const String kLauncherExe = "FortniteLauncher.exe";
|
||||
const String kEacExe = "FortniteClient-Win64-Shipping_EAC.exe";
|
||||
const String kCrashReportExe = "CrashReportClient.exe";
|
||||
const String kGFSDKAftermathLibDll = "GFSDK_Aftermath_Lib.dll";
|
||||
final Version kMaxAllowedVersion = Version.parse("30.10");
|
||||
@@ -1,11 +1,11 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:reboot_common/common.dart';
|
||||
import 'package:version/version.dart';
|
||||
|
||||
|
||||
class GameInstance {
|
||||
final String version;
|
||||
final bool host;
|
||||
final int gamePid;
|
||||
final int? launcherPid;
|
||||
final int? eacPid;
|
||||
@@ -18,6 +18,7 @@ class GameInstance {
|
||||
|
||||
GameInstance({
|
||||
required this.version,
|
||||
required this.host,
|
||||
required this.gamePid,
|
||||
required this.launcherPid,
|
||||
required this.eacPid,
|
||||
|
||||
@@ -15,7 +15,13 @@ final Semaphore _semaphore = Semaphore();
|
||||
String? _lastIp;
|
||||
String? _lastPort;
|
||||
|
||||
Stream<ServerResult> startBackend({required ServerType type, required String host, required String port, required bool detached, required void Function(String) onError}) async* {
|
||||
Stream<ServerResult> startBackend({
|
||||
required ServerType type,
|
||||
required String host,
|
||||
required String port,
|
||||
required bool detached,
|
||||
required void Function(String) onError
|
||||
}) async* {
|
||||
Process? process;
|
||||
HttpServer? server;
|
||||
try {
|
||||
@@ -147,7 +153,13 @@ Future<Process> startEmbeddedBackend(bool detached, {void Function(String)? onEr
|
||||
}
|
||||
});
|
||||
if(!detached) {
|
||||
process.exitCode.then((exitCode) => log("[BACKEND] Exit code: $exitCode"));
|
||||
process.exitCode.then((exitCode) {
|
||||
if(!killed) {
|
||||
log("[BACKEND] Exit code: $exitCode");
|
||||
onError?.call("Exit code: $exitCode");
|
||||
killed = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
return process;
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ Future<String> extractGameVersion(Directory directory) => Isolate.run(() async {
|
||||
log("[VERSION] Engine build: $engineVersionBuild");
|
||||
gameVersion = _buildToGameVersion[engineVersionBuild] ?? defaultGameVersion;
|
||||
}
|
||||
log("[VERSION] Returning $gameVersion");
|
||||
log("[VERSION] Parsed game version: $gameVersion");
|
||||
return gameVersion;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user