mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-07-25 09:15:07 +10:00
Game updates (#187)
* refactor: split umu launcher * feat: latest version picker + fixes * feat: frontend latest changes * feat: game update detection w/ setting * feat: fixes and refactor for game update * fix: windows ui * fix: deps * feat: update modifications * feat: missing ui and lock update * fix: create install dir on init * fix: clippy * fix: clippy x2 * feat: add configuration option to toggle updates * feat: uninstall dropdown on partiallyinstalled
This commit is contained in:
+31
-15
@@ -53,6 +53,7 @@ export type GameVersion = {
|
||||
userConfiguration: {
|
||||
launchTemplate: string;
|
||||
overrideProtonPath: string;
|
||||
enableUpdates: boolean
|
||||
};
|
||||
setups: Array<{ platform: string }>;
|
||||
launches: Array<{ platform: string }>;
|
||||
@@ -67,24 +68,39 @@ export enum AppStatus {
|
||||
ServerUnavailable = "ServerUnavailable",
|
||||
}
|
||||
|
||||
export enum GameStatusEnum {
|
||||
Remote = "Remote",
|
||||
Queued = "Queued",
|
||||
Downloading = "Downloading",
|
||||
Validating = "Validating",
|
||||
Installed = "Installed",
|
||||
Updating = "Updating",
|
||||
Uninstalling = "Uninstalling",
|
||||
SetupRequired = "SetupRequired",
|
||||
Running = "Running",
|
||||
export type EmptyGameStatusEnum =
|
||||
| "Remote"
|
||||
| "Queued"
|
||||
| "Downloading"
|
||||
| "Validating"
|
||||
| "Updating"
|
||||
| "Uninstalling"
|
||||
| "Running";
|
||||
|
||||
export enum InstalledType {
|
||||
PartiallyInstalled = "PartiallyInstalled",
|
||||
SetupRequired = "SetupRequired",
|
||||
Installed = "Installed",
|
||||
}
|
||||
|
||||
export type GameStatus = {
|
||||
type: GameStatusEnum;
|
||||
version_name?: string;
|
||||
install_dir?: string;
|
||||
};
|
||||
export interface InstalledGameStatusData {
|
||||
install_type: { type: InstalledType };
|
||||
version_id: string;
|
||||
install_dir: string;
|
||||
update_available: boolean;
|
||||
}
|
||||
|
||||
export type GameStatus =
|
||||
| {
|
||||
type: EmptyGameStatusEnum;
|
||||
}
|
||||
| ({
|
||||
type: "Installed";
|
||||
} & InstalledGameStatusData);
|
||||
|
||||
export type GameStatusEnum = GameStatus["type"];
|
||||
|
||||
export type RawGameStatus = [GameStatus | null, GameStatus | null];
|
||||
|
||||
export enum DownloadableType {
|
||||
Game = "Game",
|
||||
|
||||
Reference in New Issue
Block a user