mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-14 20:20:09 +03:00
Replace an console.log with setting
This commit is contained in:
parent
022fd6578b
commit
391d293555
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ export default class PrefixSelector
|
|||
} else if (fs.existsSync(path.join(location, 'drive_c', 'Program Files', 'Genshin Impact', 'GenshinImpact_Data', 'globalgamemanagers'))) {
|
||||
const config = fs.readFileSync(path.join(location, 'drive_c', 'Program Files', 'Genshin Impact', 'GenshinImpact_Data', 'globalgamemanagers'), { encoding: 'ascii' });
|
||||
const version = /([1-9]+\.[0-9]+\.[0-9]+)_[\d]+_[\d]+/.exec(config)![1];
|
||||
console.log(version);
|
||||
|
||||
LauncherLib.updateConfig('version', version);
|
||||
LauncherLib.updateConfig('prefix', location);
|
||||
this.prefix = location;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue