diff --git a/.github/workflows/build-gamescope.yml b/.github/workflows/build-gamescope.yml index bcc828aef6..2b2ddbe770 100644 --- a/.github/workflows/build-gamescope.yml +++ b/.github/workflows/build-gamescope.yml @@ -5,6 +5,10 @@ name: Build gamescope (patched) # release asset the apk build fetches (tools/gamescope/release.env names the tag and sha). The # hosted runtime image is never changed: the apk stages the binary over /usr/local/bin. on: + push: + paths: + - 'tools/gamescope/**' + - '.github/workflows/build-gamescope.yml' workflow_dispatch: inputs: tag: @@ -33,7 +37,7 @@ jobs: gamescope.tzst gamescope.tzst.sha256 - name: Publish - if: inputs.tag != '' + if: github.event_name == 'workflow_dispatch' && inputs.tag != '' env: GH_TOKEN: ${{ github.token }} run: | diff --git a/app/src/main/java/com/steamdeck/launcher/frontend/AddedGames.kt b/app/src/main/java/com/steamdeck/launcher/frontend/AddedGames.kt index ee31d50a6e..76d645c8f9 100644 --- a/app/src/main/java/com/steamdeck/launcher/frontend/AddedGames.kt +++ b/app/src/main/java/com/steamdeck/launcher/frontend/AddedGames.kt @@ -76,7 +76,8 @@ object AddedGames { val candidates = candidates(folder) val chosen = SessionPrefs.addedGameExe(context, folder.name).takeIf { it.isNotEmpty() }?.let { File(it) }?.takeIf { it.isFile } val exe = chosen ?: candidates.firstOrNull() ?: continue - val guestExe = guestPath(context, exe) ?: run { Log.w(TAG, "${folder.name}: the session cannot see ${exe.path}"); continue } + val guestExe = guestPath(context, exe) + if (guestExe == null) { Log.w(TAG, "${folder.name}: the session cannot see ${exe.path}"); continue } val guestDir = guestPath(context, exe.parentFile ?: folder) ?: continue val name = folder.name val crc = CRC32().apply { update(("\"$guestExe\"" + name).toByteArray()) }.value