os_get_config

Returns the name of the current configuration.

Syntax:

GML Code Example

os_get_config()


Returns: String


Description

This function returns the name (as a string) of the currently selected configuration for your game. For more information on configurations please see the section Advanced Use: Configurations.

NOTE: Configurations are only available in the Professional Version of GameMaker: Studio.


Example:

GML Code Example

if os_get_config() = "Free_Version"
    {
    ads_enable((room_width / 2) - 100, 0, 200, 75, 60);
    }
 

The above code will check to see which configuration is being used and if it is the one called "Free_Version", ads will be enabled in the game.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here