mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
fix: Game debug logs reach x86-64 Proton games and Share logs keeps them (#3759)
* fix(fex): game debug logs reach games run on the x86-64 Proton The x86-64 DroidDeck-Proton path runs the game through droiddeck-fex proton, which applied per-game settings but never the Game debug logs or Detailed graphics logs, so no Proton log was written for those launches. The proton action now applies both after the game's settings, as droiddeck-game-env does, and caps the Proton log size. * fix(logs): Share logs keeps a session's game logs ahead of Steam client logs The shared archive packed the Steam client's own logs (several MB each) before the session's game logs, so the 64 MB budget could run out and drop the Proton log Game debug logs had just written. Session-critical files go first, then the session's game logs, then everything else.
This commit is contained in:
1 parent
c54cadacde
commit
caae385924
4 files changed
+87
-4
No files matched your search
@@ -268,7 +268,7 @@ internal object EnhancedSessionLogShare {
|
||||
val out = outputDirectory.apply { deleteRecursively(); mkdirs() }
|
||||
val redactionLearningComplete = LogRedactor.learnFromRuntime(LinuxRuntime.rootDir(context))
|
||||
val discovery = collect(context, folder, limits.maxDiscoveredFiles, legacy = true)
|
||||
val candidates = discovery.candidates.filter { it.linePrefix == null }
|
||||
val candidates = discovery.candidates.filter { it.linePrefix == null }.sortedBy(::sharePriority)
|
||||
if (candidates.isEmpty()) {
|
||||
out.deleteRecursively()
|
||||
return null
|
||||
@@ -745,6 +745,12 @@ internal object EnhancedSessionLogShare {
|
||||
return CollectionResult(out.values.toList(), truncated, partial)
|
||||
}
|
||||
|
||||
private fun sharePriority(candidate: Candidate): Int = when {
|
||||
candidate.origin == "session-critical" -> 0
|
||||
candidate.origin == "session" && candidate.category == Category.GAMES -> 1
|
||||
else -> 2
|
||||
}
|
||||
|
||||
private fun remaining(maxFiles: Int, found: Int): Int = (maxFiles - found + 1).coerceAtLeast(0)
|
||||
|
||||
private fun walk(root: File, limit: Int): ScanResult {
|
||||
|
||||
Reference in new issue
Block a user