mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
added games: plain null check instead of continue inside a lambda; gamescope build also runs on pushes touching its inputs
This commit is contained in:
1 parent
687b882983
commit
23f3e3ccf7
2 files changed
+7
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user