-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add OS::get_version_alias()
#11292
Comments
This method should also list the Windows update, as it's relevant to many issues. For instance, Does macOS need special handling here? As far as I can tell, the major version number matches what you see in macOS' own UI. |
Only if we translate it to names instead of numbers: 15.x.x → macOS Sequoia, 14.x.x → macOS Sonoma, and so on. |
We could have |
I mean, we should absolutely copy something like " |
We could inspire ourselves from what Python does.
|
Describe the project you are working on
Reporting godotengine/godot#100055
Describe the problem or limitation you are having in your project
Especially on Windows 11, the system info Godot offers when selecting Help → Copy System Info is misleading, as
Windows 10.0.22631
in reality means Windows 11, not Windows 10.It stems from the use of
OS::get_version()
as the sole OS identifier.Describe the feature / enhancement and how it helps to overcome the problem or limitation
OS::get_version_alias()
would return these values when called on different systems.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
OS::get_version()
>= 10.0.22000
< 10.0.22000
>= 6.2.9200
< 6.2.9200 && >= 6.1.7601
< 6.2.9200
>= macOS 15.0.0
< macOS 15.0.0 >= macOS 14.0.0
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, as it's a new API and needs to work in the editor.
Is there a reason why this should be core and not an add-on in the asset library?
Needs to be in the editor.
Edit: Updated macOS to show their names.
The text was updated successfully, but these errors were encountered: