Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Xbox Game Pass directory resolver bugs #882

Merged
merged 1 commit into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class XboxGamePassDirectoryResolver extends GameDirectoryResolver
const installDirectoryQuery = `get-appxpackage -Name ${game.activePlatform.storeIdentifier} | select -expand InstallLocation`;
const queryResult: string = child.execSync(`powershell.exe "${installDirectoryQuery}"`).toString().trim();
const realInstallLocation = await FsProvider.instance.realpath(queryResult);
if (FsProvider.instance.exists(realInstallLocation)) {
if (await FsProvider.instance.exists(realInstallLocation)) {
return realInstallLocation;
}
else {
Expand All @@ -26,7 +26,7 @@ export default class XboxGamePassDirectoryResolver extends GameDirectoryResolver
} catch (err) {
return new R2Error(
`Unable to resolve the ${game.displayName} install directory`,
err.message,
`${err}`,
ebkr marked this conversation as resolved.
Show resolved Hide resolved
`Try manually locating the ${game.displayName} install directory through the settings`
);
}
Expand Down