Categories Main

GETOS


getOS();

Returns what OS XYG is running on. Constants for comparison include os_windows, os_linux, os_android, os_mac.


Use example:

switch(getOS()){
	case os_winodws:
		//Draw a broken window
		break;
	case os_linux:
		//Draw a cute penguin
		break;
	case os_winodws:
		//Draw a trash can
		break;
	case os_winodws:
		//Draw a rotten apple core
		break;
};

Search results