feat: Implemented emulator versions and updating
This commit is contained in:
parent
a69147a4f7
commit
34db717ec5
22 changed files with 434 additions and 212 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { AsyncSeriesBailHook } from "tapable";
|
||||
import { EmulatorDownloadInfoType, EmulatorPackageType } from "@/shared/constants";
|
||||
import { AsyncSeriesBailHook, AsyncSeriesHook } from "tapable";
|
||||
|
||||
export class EmulatorHooks
|
||||
{
|
||||
|
|
@ -7,4 +8,15 @@ export class EmulatorHooks
|
|||
systems: EmulatorSystem[];
|
||||
biosFolder: string;
|
||||
}], { auth?: string, files: DownloadFileEntry[]; } | undefined>(['ctx']);
|
||||
|
||||
/**
|
||||
* Triggered when emulator is downloaded or updated
|
||||
*/
|
||||
emulatorPostInstall = new AsyncSeriesHook<[ctx: {
|
||||
emulator: string;
|
||||
emulatorPackage?: EmulatorPackageType;
|
||||
path: string;
|
||||
update: boolean;
|
||||
info: EmulatorDownloadInfoType;
|
||||
}]>(['ctx']);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue