Anderson Green
Anderson Green

Reputation: 31840

Is it possible to detect the current operating system in Haxe?

In Haxe, is there any way to get the name of the current operating system? I'm looking for a way to do this that works in all Haxe target languages.

Upvotes: 3

Views: 960

Answers (1)

Anderson Green
Anderson Green

Reputation: 31840

Use Sys.systemName() to obtain the name of the operating system - this works for multiple target languages.

Upvotes: 7

Related Questions