2021-11-01 13:46:10 +03:00
|
|
|
const path = require('path');
|
|
|
|
const os = require('os');
|
|
|
|
|
|
|
|
export class constants
|
|
|
|
{
|
|
|
|
public static readonly gamePlaceholder = {
|
2021-11-01 14:01:28 +03:00
|
|
|
uppercase:
|
|
|
|
{
|
|
|
|
first: Buffer.from('R2Vuc2hpbg==', 'base64').toString(),
|
|
|
|
second: Buffer.from('SW1wYWN0', 'base64').toString(),
|
|
|
|
full: Buffer.from('R2Vuc2hpbiBJbXBhY3Q=', 'base64').toString()
|
|
|
|
},
|
|
|
|
|
|
|
|
lowercase:
|
|
|
|
{
|
|
|
|
first: Buffer.from('Z2Vuc2hpbg==', 'base64').toString(),
|
|
|
|
company: Buffer.from('bWlob3lv', 'base64').toString()
|
|
|
|
}
|
2021-11-01 13:46:10 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
public static readonly launcherDir: string = path.join(os.homedir(), '.local', 'share', 'anime-game-launcher');
|
|
|
|
|
|
|
|
public static readonly prefixDir: string = path.join(this.launcherDir, 'game');
|
2021-11-01 14:01:28 +03:00
|
|
|
public static readonly gameDir: string = path.join(this.prefixDir, 'drive_c', 'Program Files', this.gamePlaceholder.uppercase.full);
|
2021-11-01 13:46:10 +03:00
|
|
|
public static readonly runnersDir: string = path.join(this.launcherDir, 'runners');
|
|
|
|
public static readonly dxvksDir: string = path.join(this.launcherDir, 'dxvks');
|
|
|
|
|
2021-11-01 14:01:28 +03:00
|
|
|
public static readonly versionsUri: string = `https://sdk-os-static.${this.gamePlaceholder.lowercase.company}.com/hk4e_global/mdk/launcher/api/resource?key=gcStgarh&launcher_id=10`;
|
|
|
|
public static readonly backgroundUri: string = `https://sdk-os-static.${this.gamePlaceholder.lowercase.company}.com/hk4e_global/mdk/launcher/api/content?filter_adv=true&launcher_id=10&language=`;
|
2021-11-01 13:46:10 +03:00
|
|
|
|
|
|
|
public static readonly patchUri: string = 'https://notabug.org/Krock/GI-on-Linux/archive/master.zip';
|
|
|
|
|
|
|
|
public static readonly runnersUri: string = 'https://notabug.org/nobody/an-anime-game-launcher/raw/main/runners.json';
|
|
|
|
public static readonly dxvksUri: string = 'https://notabug.org/nobody/an-anime-game-launcher/raw/main/dxvks.json';
|
|
|
|
}
|