File tree 2 files changed +5
-1
lines changed
src/backend/storeManagers/gog
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ export async function install(
328
328
? await getLinuxInstallerInfo ( appName )
329
329
: null
330
330
331
- if ( gameInfo . folder_name === undefined ) {
331
+ if ( gameInfo . folder_name === undefined || gameInfo . folder_name . length === 0 ) {
332
332
logError ( 'game info folder is undefined in GOG install' , LogPrefix . Gog )
333
333
return { status : 'error' }
334
334
}
Original file line number Diff line number Diff line change @@ -194,6 +194,10 @@ export async function refresh(): Promise<ExecResult> {
194
194
}
195
195
const unifiedObject = await gogToUnifiedInfo ( data , product ?. data )
196
196
if ( unifiedObject . app_name ) {
197
+ const oldData = library . get ( unifiedObject . app_name )
198
+ if ( oldData ) {
199
+ unifiedObject . folder_name = oldData . folder_name
200
+ }
197
201
gamesObjects . push ( unifiedObject )
198
202
}
199
203
const installedInfo = installedGames . get ( String ( game . external_id ) )
You can’t perform that action at this time.
0 commit comments