mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-20 17:01:47 +03:00
Fixed DXVK applying and hot cache resolving issues
This commit is contained in:
parent
0045e0576a
commit
b643823d60
2 changed files with 5 additions and 2 deletions
|
@ -33,7 +33,10 @@ export default class Cache
|
|||
]
|
||||
});
|
||||
|
||||
resolve(this.cache[name]);
|
||||
resolve({
|
||||
expired: this.cache[name].ttl !== null ? Date.now() > this.cache[name].ttl * 1000 : false,
|
||||
value: this.cache[name].value
|
||||
});
|
||||
}
|
||||
|
||||
else Neutralino.filesystem.readFile(await constants.paths.cache)
|
||||
|
|
|
@ -182,7 +182,7 @@ export default class DXVK
|
|||
* And then run it
|
||||
*/
|
||||
(): Promise<void> => new Promise(async (resolve) => {
|
||||
const alias = runner ? `alias winecfg="${runnerDir}/${runner.files.winecfg}"\\n` : '';
|
||||
const alias = runner ? `alias winecfg="${runnerDir}/${runner.files.winecfg}"\n` : '';
|
||||
|
||||
Process.run(`eval $'${alias}./setup_dxvk.sh install'`, {
|
||||
cwd: dxvkDir,
|
||||
|
|
Loading…
Reference in a new issue