Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Wine detection #10284

Draft
wants to merge 3 commits into
base: content
Choose a base branch
from

Conversation

dreamscached
Copy link
Member

@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

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