-
Notifications
You must be signed in to change notification settings - Fork 82
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
Improve Windows Logo Detection #88
Conversation
f4e2050
to
c6f6705
Compare
The force-pushes were to add Windows 8/8.1 support, alongside fixing the edgecase of a possible "Windows 110" being recognised as "Windows 11". |
I was starting to think our logo detection logic might be getting a little stale after the recent leaks xD The Also, a more robust way of detecting Windows major version names would be through build numbers - it allows more flexibility and less hard-coded comparisons. So I don't think we should be comparing strings for that. What do you think @jcwillox? I was about to add Windows 11 logo myself, but it is still not confirmed what build numbers they'll start with (rumor is 22000). |
I've removed the With regards to using build numbers, we'd then have to keep track (via an array or dictionary) the list of minimum build numbers for each version of Windows (therefore still hard-coding) as opposed to just matching the version string. It isn't much different functionally, but is cleaner to utilise version string matching. At the end of the day, there are less Windows versions than Winodws builds. An alternative may be to use the kernel version, however the problem with that is that both the "leaked" Windows 11 build and the first set of Windows 10 builds all used kernel versions of their predecessor and, as such, would be detected incorrectly. |
Haha, might be a little early to be adding Windows 11 support but I'm all for it XD. I have to agree while build number would seem to be the better method of detection, but matching the version string is probably going to be the easiest and most reliable. Plus any performance difference shouldn't be noticeable. As for the |
64098f1
to
70c5c68
Compare
This also adds support for (the upcoming) Windows 11.
This has become useless after our changes to the logo detection logic.
I've added the logo paramater you requested and corrected the previous commits so that they aren't broken if ever ungrouped (hence the force-pushes). Hopefully this meets your criteria. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me
Great! Thanks for the contribution @lazerl0rd ! |
This also adds support for (the upcoming) Windows 11.