This commit is contained in:
Alessandro Autiero
2024-06-01 16:26:00 +02:00
parent d478650e9b
commit efb508bd0c
243 changed files with 486662 additions and 2948 deletions

View File

@@ -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 {

View File

@@ -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;
}
}

View File

@@ -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
});
}

View File

@@ -24,4 +24,6 @@ enum ServerResultType {
pingError;
bool get isError => name.contains("Error");
bool get isSuccess => this == ServerResultType.startSuccess || this == ServerResultType.stopSuccess;
}