Separate game file downloads and verification with progress timing
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import type { HostLibraryCache } from './game-files.js';
|
||||
|
||||
export type HostMode = 'active' | 'draining' | 'disabled';
|
||||
export type HostReadiness = 'preparing' | 'needs-runtime' | 'needs-game-files' | 'ready' | 'degraded' | 'draining' | 'disabled' | 'deleting';
|
||||
export type HostOperationState = 'pending' | 'accepted' | 'running' | 'completed' | 'failed' | 'unknown';
|
||||
@@ -86,6 +88,7 @@ export interface HostPreparationItem {
|
||||
kind: 'runtime' | 'library'; label: string;
|
||||
state: 'waiting' | 'preparing' | 'ready' | 'blocked'; detail: string;
|
||||
operationId?: string; bytesDownloaded?: number; bytesTotal?: number;
|
||||
cache?: HostLibraryCache;
|
||||
}
|
||||
export interface HostPreparation {
|
||||
state: HostPreparationItem['state']; items: HostPreparationItem[];
|
||||
|
||||
Reference in New Issue
Block a user