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

[UX] Allow setting offline mode even if game does not have the metadata #3385

Merged
merged 2 commits into from Jan 6, 2024

Conversation

arielj
Copy link
Collaborator

@arielj arielj commented Jan 4, 2024

This PR fixes #3383

Some games seem to not have the CanRunOffline metadata but still work fine in offline mode. This PR allows users to toggle that on so they can still try to run the game.

When the option is turned on and the game does not allow offline mode, this warning is displayed:

image

This will also solve a problem that users sometimes can't find the option and they ask over Discord. Now the option will be always there. In some cases it may not work but we have the warning to let users know it's not heroic's fault but the game not supporting offline mode.


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)

@arielj arielj added the pr:ready-for-review Feature-complete, ready for the grind! :P label Jan 4, 2024
@arielj arielj requested review from a team, flavioislima, CommandMC, Etaash-mathamsetty, Nocccer and imLinguin and removed request for a team January 4, 2024 02:29
}
logWarning(
'Offline Mode is on but the game does not allow offline mode explicitly.'
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we don't stop the launching of the game, but we still log this information cause it's important

@@ -26,17 +28,28 @@ const OfflineMode = () => {

const [offlineMode, setOfflineMode] = useSetting('offlineMode', false)

if (isDefault || !canRunOffline) {
if (isDefault) {
Copy link
Member

Choose a reason for hiding this comment

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

This feature is for Epic games only, right? because GOG will work fine offline since they don't have DRM. Same for Amazon games. So we could hide it for GOG or disable it and show a information about it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed this to only show the option for Epic games.

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

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

nice stuff

@arielj arielj merged commit 3687527 into main Jan 6, 2024
9 checks passed
@arielj arielj deleted the always-show-offline-mode branch January 6, 2024 23:11
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Jan 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

Offline Mode Not Appearing for Some Epic Games
2 participants