Archive 19/01/2023.

Get current OS in AngelScript

Askhento

Is it possible to know what is current OS inside angel script?

throwawayerino

Is there even a way to get OS in C++ that doesn’t involve macros? If there is, then the function is probably exposed to script.
If you’re not using the Urho3DPlayer you could check for compile time defines and pass them to your init script. Which isn’t an acceptable solution but can be a temporary fix.

1vanK

GetOSVersion

Post must be at least 20 chars