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] issues with offline support #3956

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ async function prepareLaunch(

if (
(await isUmuSupported(gameSettings.wineVersion.type, false)) &&
!(await isInstalled('umu')) &&
isOnline() &&
!(await isInstalled('umu')) &&
(await getUmuPath()) === defaultUmuPath
) {
await download('umu')
Expand Down
4 changes: 3 additions & 1 deletion src/backend/storeManagers/gog/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ async function loadLocalLibrary() {
for (const game of libraryStore.get('games', [])) {
const copyObject = { ...game }
if (installedGames.has(game.app_name)) {
await checkForOfflineInstallerChanges(game.app_name)
if (isOnline()) {
await checkForOfflineInstallerChanges(game.app_name)
}
copyObject.install = installedGames.get(game.app_name)!
copyObject.is_installed = true
}
Expand Down
Loading