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

[feat/663] Option to launch BS without SteamVR #664

Merged
merged 10 commits into from
Dec 21, 2024

Conversation

LiamillionSS
Copy link
Contributor

Closes #663, which is to add a button to the Advanced Settings that enables and disables the "openSteam" part of the launch functionality when toggled (+ minor typo)

Set to enable launching as default to match original configuration

Once wording is finalised I will add the rest of the translations

@@ -77,8 +77,11 @@ export class SteamLauncherService extends AbstractLauncherService implements Sto
throw CustomError.fromError(new Error(`Path not exist : ${exePath}`), BSLaunchError.BS_NOT_FOUND);
}

const staticConfigService = StaticConfigurationService.getInstance();
const launchVREnabled = await staticConfigService.get("disable-launch-vr");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a readability standpoint, this is very confusing. If "disable-launch-vr" is true then this will check if steam is running. Might want to use "enable-launch-vr" instead, or "enable-steamvr-launch" that other dev may get context that this is tied to SteamVR and Steam.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that originally but changed it to match the formatting of hardware acceleration 💀

Alright that's easy enough to redo

Comment on lines 80 to 81
const staticConfigService = StaticConfigurationService.getInstance();
const launchVREnabled = await staticConfigService.get("disable-launch-vr");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the staticConfigService variable and use the this.staticConfig member variable instead.

@Zagrios
Copy link
Owner

Zagrios commented Nov 20, 2024

@LiamillionSS How about putting that in the advanced launch panel instead? 🤔
I mean, it’s kind of made for that😅
image

@Zagrios
Copy link
Owner

Zagrios commented Dec 1, 2024

@LiamillionSS Can you replace "Skip SteamVR" with "Skip Steam"? 🤔
'Cause from what I see in the code, it doesn't prevent SteamVR from opening but rather skips starting Steam before launching Beat Saber 🤔

@@ -37,6 +37,9 @@ export abstract class AbstractLauncherService {
if (launchOptions.additionalArgs) {
launchArgs.push(...launchOptions.additionalArgs);
}
if (launchOptions.launchVR) {
launchArgs.push(...launchOptions.launchVR);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LiamillionSS is this still relevant 🤔 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remind me to never rebase again

Copy link
Owner

@Zagrios Zagrios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good to me 👌

@Zagrios
Copy link
Owner

Zagrios commented Dec 21, 2024

Thanks @LiamillionSS ❤️
Merging 🚀

@Zagrios Zagrios merged commit 8776b03 into Zagrios:master Dec 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT.] : Option to launch BS without SteamVR
3 participants