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] Enable anti cheat runtimes by default #3103

Conversation

Etaash-mathamsetty
Copy link
Member

@Etaash-mathamsetty Etaash-mathamsetty commented Oct 1, 2023

This is probably the best way to do it, rather than just reading the anticheat data. Proton does the same thing for most titles I think

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

Copy link
Collaborator

@Nocccer Nocccer left a comment

Choose a reason for hiding this comment

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

As long as it does not use more free space on each game we could enable it always. How big are this runtimes and are they copied over to the prefix?

src/backend/config.ts Show resolved Hide resolved
@Etaash-mathamsetty
Copy link
Member Author

Etaash-mathamsetty commented Oct 2, 2023

As long as it does not use more free space on each game we could enable it always. How big are this runtimes and are they copied over to the prefix?

It doesn't take any additional storage, nothing is copied to the prefix

@Etaash-mathamsetty Etaash-mathamsetty added the pr:ready-for-review Feature-complete, ready for the grind! :P label Oct 21, 2023
@Etaash-mathamsetty
Copy link
Member Author

updated to automatically download the runtimes as well

@arielj arielj added this to the 2.10.0 milestone Oct 28, 2023
@@ -323,7 +324,9 @@ class GlobalConfigV0 extends GlobalConfig {
winePrefix: isWindows ? '' : defaultWinePrefix,
wineVersion: defaultWine,
enableEsync: true,
enableFsync: true
enableFsync: isLinux,
Copy link
Member Author

@Etaash-mathamsetty Etaash-mathamsetty Oct 28, 2023

Choose a reason for hiding this comment

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

fsync uses a linux specific syscall and can only should be enabled by default on linux

Copy link
Collaborator

Choose a reason for hiding this comment

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

This may be nitpicky, but I don't think this should be in this PR

}

if (gameSettings.battlEyeRuntime && !isInstalled('battleye_runtime')) {
download('battleye_runtime')
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we await these calls? so we don't launch the game before they are downloaded

also, should we handle the case when something fails to download? like no internet connection for example, since I understand that setting to true when it's not available is a problem

Copy link
Member

Choose a reason for hiding this comment

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

agree on that as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

if you are offline then the anti cheat not running doesn't matter in most cases right?

Copy link
Collaborator

@CommandMC CommandMC left a comment

Choose a reason for hiding this comment

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

You'll also have to auto-enable GameMode if we're on Flatpak

@Etaash-mathamsetty
Copy link
Member Author

Etaash-mathamsetty commented Nov 7, 2023

You'll also have to auto-enable GameMode if we're on Flatpak

is gamemode is always installed on the flaptak?

@CommandMC
Copy link
Collaborator

Yes, the Flatpak always installs it. See com.heroicgameslauncher.hgl.yml#L111

Copy link
Contributor

@kohend kohend left a comment

Choose a reason for hiding this comment

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

Looks good to me

@flavioislima flavioislima merged commit 6b430d8 into Heroic-Games-Launcher:main Nov 21, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants