-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
[FIX] Enable anti cheat runtimes by default #3103
Conversation
3eb1128
to
baa28e0
Compare
There was a problem hiding this 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?
It doesn't take any additional storage, nothing is copied to the prefix |
updated to automatically download the runtimes as well |
@@ -323,7 +324,9 @@ class GlobalConfigV0 extends GlobalConfig { | |||
winePrefix: isWindows ? '' : defaultWinePrefix, | |||
wineVersion: defaultWine, | |||
enableEsync: true, | |||
enableFsync: true | |||
enableFsync: isLinux, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
src/backend/launcher.ts
Outdated
} | ||
|
||
if (gameSettings.battlEyeRuntime && !isInstalled('battleye_runtime')) { | ||
download('battleye_runtime') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this 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
is gamemode is always installed on the flaptak? |
Yes, the Flatpak always installs it. See com.heroicgameslauncher.hgl.yml#L111 |
There was a problem hiding this 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
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: