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

Expose EditorExportPlatform::get_os_name() #81430

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

aaronfranke
Copy link
Member

In The Mirror, we need to be able to check what the target operating system of the export is in an EditorExportPlugin script. Turns out, the engine already has a method to do exactly this, but it's just not exposed.

The documentation of possible values was written by looking at the source code. I have tested this for exporting Windows, macOS, and Linux (all from a macOS host) to verify that those are correct.

@aaronfranke aaronfranke added this to the 4.2 milestone Sep 7, 2023
@aaronfranke aaronfranke requested a review from a team as a code owner September 7, 2023 17:55
@akien-mga akien-mga changed the title Expose EditorExportPlatform::get_os_name() Expose EditorExportPlatform::get_os_name() Sep 8, 2023
@akien-mga akien-mga merged commit b39303a into godotengine:master Sep 8, 2023
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the export-platform-os-name branch September 8, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants