mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding aria2
This commit is contained in:
parent
a89e6760da
commit
4941709296
58 changed files with 895 additions and 1329 deletions
|
@ -31,22 +31,11 @@ export const formatBytes = (bytes: number): string => {
|
|||
};
|
||||
|
||||
export class GameStatusHelper {
|
||||
public static isDownloading(status: GameStatus | null) {
|
||||
return (
|
||||
status === GameStatus.Downloading ||
|
||||
status === GameStatus.DownloadingMetadata ||
|
||||
status === GameStatus.CheckingFiles
|
||||
);
|
||||
public static isDownloading(status: string | null) {
|
||||
return status === "active";
|
||||
}
|
||||
|
||||
public static isVerifying(status: GameStatus | null) {
|
||||
return (
|
||||
GameStatus.DownloadingMetadata == status ||
|
||||
GameStatus.CheckingFiles == status
|
||||
);
|
||||
}
|
||||
|
||||
public static isReady(status: GameStatus | null) {
|
||||
return status === GameStatus.Finished || status === GameStatus.Seeding;
|
||||
public static isReady(status: string | null) {
|
||||
return status === "complete";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue