mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
9.0.4
This commit is contained in:
@@ -20,7 +20,11 @@ class FortniteBuildDownloadProgress {
|
||||
final int? minutesLeft;
|
||||
final bool extracting;
|
||||
|
||||
FortniteBuildDownloadProgress(this.progress, this.minutesLeft, this.extracting);
|
||||
FortniteBuildDownloadProgress({
|
||||
required this.progress,
|
||||
required this.extracting,
|
||||
this.minutesLeft,
|
||||
});
|
||||
}
|
||||
|
||||
class FortniteBuildDownloadOptions {
|
||||
|
||||
@@ -6,7 +6,6 @@ class GameInstance {
|
||||
final int gamePid;
|
||||
final int? launcherPid;
|
||||
final int? eacPid;
|
||||
int? observerPid;
|
||||
bool hosting;
|
||||
bool launched;
|
||||
bool tokenError;
|
||||
@@ -29,9 +28,18 @@ class GameInstance {
|
||||
if(eacPid != null) {
|
||||
Process.killPid(eacPid!, ProcessSignal.sigabrt);
|
||||
}
|
||||
if(observerPid != null) {
|
||||
Process.killPid(observerPid!, ProcessSignal.sigabrt);
|
||||
}
|
||||
|
||||
bool get nestedHosting {
|
||||
GameInstance? child = this;
|
||||
while(child != null) {
|
||||
if(child.hosting) {
|
||||
return true;
|
||||
}
|
||||
|
||||
child = child.child;
|
||||
}
|
||||
child?.kill();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
class Win32Process {
|
||||
final int pid;
|
||||
final Stream<String> stdOutput;
|
||||
final Stream<String> errorOutput;
|
||||
|
||||
Win32Process({
|
||||
required this.pid,
|
||||
required this.stdOutput,
|
||||
required this.errorOutput
|
||||
});
|
||||
}
|
||||
|
||||
class PrimitiveWin32Process {
|
||||
final int pid;
|
||||
final int stdOutputHandle;
|
||||
final int errorOutputHandle;
|
||||
|
||||
PrimitiveWin32Process({
|
||||
required this.pid,
|
||||
required this.stdOutputHandle,
|
||||
required this.errorOutputHandle
|
||||
});
|
||||
}
|
||||
@@ -24,4 +24,6 @@ enum ServerResultType {
|
||||
pingError;
|
||||
|
||||
bool get isError => name.contains("Error");
|
||||
|
||||
bool get isSuccess => this == ServerResultType.startSuccess || this == ServerResultType.stopSuccess;
|
||||
}
|
||||
Reference in New Issue
Block a user