Skip to content

Conversation

@XenHat
Copy link

@XenHat XenHat commented Mar 13, 2025

This is a re-implementation of #92 with additional fixes for more games, and should be compatible with #130 as I have validated the code against the current upstream database.

The following games have been verified to be correctly detected on Linux:

  • Factorio (Proton)
  • Final Fantasy XIV Online
  • Genshin Impact
  • Grand Theft Auto: Vice City
  • Heaven Burns Red
  • Helldivers 2
  • Hollow Knight (Native)
  • Honkai: Star Rail
  • Horizon Zero Dawn
  • Journey
  • Mafia: The Old Country
  • Minecraft
  • Satisfactory
  • Snowrunner
  • STAR WARS™ Battlefront™ II
  • The Elder Scrolls IV: Oblivion Remastered
  • Wuthering Waves
  • X4: Foundations (Proton)

KNOWN ISSUES:

  • Red Dead Redemption 2 (Broken)
  • Zenless Zone Zero (Needs re-test)
  • Untested on Windows, but should work.
  • Many Linux Native titles are not detected (Missing from the Discord DB)

Main changes:

  • several performance improvements
  • match against more (malformed?) game database entries

Additional credit:

  • Marcel Witte (wittemar@gmail.com) for the Java workaround
  • Konovalov Nikolay for the more efficient executable name matching

@XenHat XenHat marked this pull request as draft March 13, 2025 16:41
XenHat

This comment was marked as outdated.

@XenHat XenHat marked this pull request as ready for review March 13, 2025 17:02
@XenHat
Copy link
Author

XenHat commented Mar 17, 2025

I've been using this for a few days, seems to be working as intended.
Testing needs to be done on Windows by users of this operating system.

@XenHat XenHat marked this pull request as draft April 14, 2025 19:01
@XenHat XenHat force-pushed the improved-detection-fixes branch 2 times, most recently from 4f79e57 to 4de0038 Compare April 20, 2025 04:15
@XenHat XenHat marked this pull request as ready for review April 22, 2025 19:34
@XenHat XenHat marked this pull request as draft April 25, 2025 05:28
@XenHat
Copy link
Author

XenHat commented Apr 25, 2025

Known issue: The Elder Scrolls IV: Oblivion Remastered isn't detected properly in the new code. An up-to-date detectable.json works with the code prior to this PR but does not with my new code. Fixed

@XenHat XenHat force-pushed the improved-detection-fixes branch 2 times, most recently from dfea808 to 10d9750 Compare April 25, 2025 23:45
@ikaikahub
Copy link

fixes my issue with running thcrap patched touhou 7, cool pr

@XenHat XenHat changed the title Improved detection fixes Improved Linux detection fixes Jul 5, 2025
@XenHat

This comment was marked as resolved.

@XenHat XenHat marked this pull request as ready for review August 31, 2025 02:54
@XenHat XenHat force-pushed the improved-detection-fixes branch 4 times, most recently from 57721dc to 2aba85d Compare September 10, 2025 18:32
@XenHat XenHat force-pushed the improved-detection-fixes branch from 42b80ec to ddd283e Compare January 3, 2026 20:33
Some games are listed in the discord game database with their parent directories
but their launched processes on linux don't always have this included in cmdline.
This fixes that by checking processes with their working directories as well.
For example, this will now detect DOOM Eternal running through proton.
@XenHat XenHat force-pushed the improved-detection-fixes branch from ddd283e to 88e1b34 Compare January 3, 2026 20:36
@XenHat XenHat force-pushed the improved-detection-fixes branch 2 times, most recently from bb16b9c to a4600ff Compare January 11, 2026 23:24
@XenHat XenHat marked this pull request as draft February 9, 2026 13:57
@XenHat XenHat marked this pull request as draft February 9, 2026 13:57
@XenHat XenHat requested a review from konovalov-nk February 9, 2026 13:57
@konovalov-nk
Copy link

Last but not least, please lets use const, let, === and all the standard ES6+ things :)

@XenHat XenHat force-pushed the improved-detection-fixes branch 2 times, most recently from 2b6d8bd to d3ec42b Compare February 12, 2026 23:52
Copy link
Author

@XenHat XenHat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far. I tried to reduce as many changes as possible.

@XenHat XenHat force-pushed the improved-detection-fixes branch 6 times, most recently from f43637f to 07b78d7 Compare February 13, 2026 01:13
changes:
 - several performance improvements
 - match against more (malformed?) game database entries
 - added simple unit tests
@XenHat XenHat force-pushed the improved-detection-fixes branch from 07b78d7 to ea121fe Compare February 13, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants