Fixed DXVK applying and hot cache resolving issues

This commit is contained in:
Observer KRypt0n_ 2022-01-05 19:36:48 +02:00
parent 0045e0576a
commit b643823d60
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 5 additions and 2 deletions

View file

@ -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) else Neutralino.filesystem.readFile(await constants.paths.cache)

View file

@ -182,7 +182,7 @@ export default class DXVK
* And then run it * And then run it
*/ */
(): Promise<void> => new Promise(async (resolve) => { (): 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'`, { Process.run(`eval $'${alias}./setup_dxvk.sh install'`, {
cwd: dxvkDir, cwd: dxvkDir,