system.getOSType on new(er) platforms?

All That Remains

system.getOSType on new(er) platforms?

Postby lcocea » 2015-11-07 06:39

What constants does system.getOSType (2.0 b3) return on tvOS and HTML5?
lcocea
Platinum Boarder
Platinum Boarder
 
Posts: 577
Joined: 2012-06-07 03:12

Re: system.getOSType on new(er) platforms?

Postby Shaderman » 2015-11-07 08:15

if ( system.getOSVersionString ( ) == "HTML5" ) then....

I have no idea for tvOS.


User avatar
Shaderman
Platinum Boarder
Platinum Boarder
 
Posts: 660
Joined: 2012-03-24 11:33
Location: Heidelberg, Germany

Re: system.getOSType on new(er) platforms?

Postby lcocea » 2015-11-07 17:28

Thanks Shaderman. On tvOS I get:

OSVersionString = 'Apple iOS'
lcocea
Platinum Boarder
Platinum Boarder
 
Posts: 577
Joined: 2012-06-07 03:12

Re: system.getOSType on new(er) platforms?

Postby broozar » 2015-11-11 22:36

that is mostly a documentation problem, sorry. if you look at the S3DX header files, you will see that there are indeed new constants for the new platforms. Go to S3DXAIEngineAPI.h and then down to the system section: kOSTypeHTML5 does exist, it is equivalent to the number 27.
User avatar
broozar
Administrator
Administrator
 
Posts: 4172
Joined: 2007-09-16 10:22
Location: Berlin - Germany


Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest

cron