mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +03:00
fcc67af03a
- updated empathize to 1.4.0; due to it was removed `Launcher.isPackageAvailable()` method which now included in empathize as `Package.exists()` - `Game.isTelemetryDisabled()` now rejects an Error object when `iputils` package (`ping` command) is not installed - due to the change above was slightly rewritten `Launch.ts` script
55 lines
863 B
TypeScript
55 lines
863 B
TypeScript
import {
|
|
// Paths API
|
|
path, dir,
|
|
|
|
// Filesystem API
|
|
fs,
|
|
|
|
// Windows API
|
|
Windows,
|
|
|
|
// OS API
|
|
Process, Tray, IPC, Notification, Archive, Package,
|
|
|
|
// Network API
|
|
fetch, Domain, Downloader,
|
|
|
|
// Async API
|
|
promisify,
|
|
|
|
// Meta classes
|
|
Cache, Configs, Debug
|
|
} from '@empathize/framework';
|
|
|
|
import YAML from 'yaml';
|
|
|
|
import constants from './ts/Constants';
|
|
|
|
Configs.file = constants.paths.config;
|
|
Cache.file = constants.paths.cache;
|
|
|
|
Configs.serialize = YAML.stringify;
|
|
Configs.unserialize = YAML.parse;
|
|
|
|
export {
|
|
// Paths API
|
|
path, dir,
|
|
|
|
// Filesystem API
|
|
fs,
|
|
|
|
// Windows API
|
|
Windows,
|
|
|
|
// OS API
|
|
Process, Tray, IPC, Notification, Archive, Package,
|
|
|
|
// Network API
|
|
fetch, Domain, Downloader,
|
|
|
|
// Async API
|
|
promisify,
|
|
|
|
// Meta classes
|
|
Cache, Configs, Debug
|
|
};
|