Skip to content

Conversation

@Xenius97
Copy link
Contributor

Closes #4459

This PR skips antivirus warnings when running under Wine.
(It needs to be tested, but based on my research, it should be fine.)

@Xenius97 Xenius97 marked this pull request as draft November 12, 2025 22:32
@Xenius97 Xenius97 marked this pull request as ready for review November 12, 2025 22:41
@FileEX FileEX added the enhancement New feature or request label Nov 22, 2025
@Xenius97 Xenius97 closed this by deleting the head repository Nov 23, 2025
@Xenius97 Xenius97 reopened this Nov 23, 2025
Copy link
Member

@qaisjp qaisjp left a comment

Choose a reason for hiding this comment

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

Nice improvement.

We have a helper here already:

// Helper to detect Wine/Proton environment
bool IsRunningOnWine()
{
HMODULE hNtdll = GetModuleHandle("ntdll.dll");
return hNtdll && GetProcAddress(hNtdll, "wine_get_version");
}

Maybe you can move this code to a shared location so both projects can share the code

@qaisjp qaisjp requested a review from a team as a code owner January 22, 2026 04:54
@qaisjp qaisjp enabled auto-merge (squash) January 22, 2026 05:36
@qaisjp qaisjp merged commit fc574ff into multitheftauto:master Jan 22, 2026
9 checks passed
@Xenius97
Copy link
Contributor Author

Maybe you can move this code to a shared location so both projects can share the code

As i see you already did it, thanks.

@gamelaster
Copy link

Huge thanks to both of you guys, that prompt was always super annoying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove "no antivirus found" info box on startup for linux/wine users

4 participants