Skip to content

Implement Wine detection#10284

Open
dreamscached wants to merge 5 commits intoMonika-After-Story:contentfrom
dreamscached:feature/wine-detect
Open

Implement Wine detection#10284
dreamscached wants to merge 5 commits intoMonika-After-Story:contentfrom
dreamscached:feature/wine-detect

Conversation

@dreamscached
Copy link
Copy Markdown
Contributor

@dreamscached dreamscached commented Jul 27, 2024

Many users (especially new to Linux) mistakenly use familiar DDLC.exe file instead of DDLC.sh, which (on some distributions with preinstalled Wine) leads to unexpected behavior: missing saves, graphical artifacts etc.

This PR addresses the issue by implementing Wine detection mechanism (by checking if HKEY_LOCAL_MACHINE\Software\Wine key is present) which could possibly later integrated into splash, introduction etc.

Discovered another approach. This PR now uses wine_get_version (declaration) to check if running in Wine. More reliable than checking for Wine registry key, which can be added manually.

Tested on:

  • Ubuntu 24.04, Wine 9.0, started from DDLC.exe - no errors, Wine is detected
  • Ubuntu 24.04, Wine 9.0, started from DDLC.sh - no errors, Wine is not detected
  • Windows 10, no WSL/Wine, started from DDLC.exe - no errors, Wine is not detected

@dreamscached dreamscached marked this pull request as ready for review September 22, 2025 13:29
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.

1 participant