Encode game directory string for security

This commit is contained in:
Maroxy 2021-10-24 12:43:27 +02:00
parent 351c883704
commit 5c5f87e792

View file

@ -52,7 +52,7 @@ export class Genshinlib
public static readonly tmpPatchDir: string = path.join(this.launcherDir, 'gi-on-linux');
public static readonly prefixDir: string = path.join(this.launcherDir, 'game');
public static readonly gameDir: string = path.join(this.prefixDir, 'drive_c', 'Program Files', 'Genshin Impact');
public static readonly gameDir: string = path.join(this.prefixDir, 'drive_c', 'Program Files', Buffer.from('R2Vuc2hpbiBJbXBhY3Q=', 'base64').toString('utf-8'));
public static readonly runnersDir: string = path.join(this.launcherDir, 'runners');
public static readonly dxvksDir: string = path.join(this.launcherDir, 'dxvks');