mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-23 02:00:17 +03:00
remove unused code
This commit is contained in:
parent
2216deea51
commit
e2c5baeb52
1 changed files with 0 additions and 32 deletions
|
@ -98,38 +98,6 @@ export class Genshinlib
|
||||||
return config;
|
return config;
|
||||||
|
|
||||||
return config.get(property)
|
return config.get(property)
|
||||||
|
|
||||||
/*
|
|
||||||
if (!fs.existsSync(this.launcherJson))
|
|
||||||
fs.writeFileSync(this.launcherJson, JSON.stringify({
|
|
||||||
lang: {
|
|
||||||
launcher: 'en-us',
|
|
||||||
voice: 'en-us'
|
|
||||||
},
|
|
||||||
background: {
|
|
||||||
time: null,
|
|
||||||
file: null
|
|
||||||
},
|
|
||||||
version: null,
|
|
||||||
patch: null,
|
|
||||||
runner: null,
|
|
||||||
rpc: false
|
|
||||||
}, null, 4));
|
|
||||||
|
|
||||||
let config = JSON.parse(fs.readFileSync(this.launcherJson));
|
|
||||||
|
|
||||||
if (property === null)
|
|
||||||
return config;
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!splitProperty)
|
|
||||||
return config[property];
|
|
||||||
|
|
||||||
property.split('.').forEach(prop => config = config[prop]);
|
|
||||||
|
|
||||||
return config;
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static updateConfig (cname: string, value: string|boolean|null|number): Genshinlib
|
public static updateConfig (cname: string, value: string|boolean|null|number): Genshinlib
|
||||||
|
|
Loading…
Reference in a new issue