Skip to content
Francisco Dias edited this page Dec 17, 2024 · 2 revisions

Apps

This a module that manages application activities.

Functions

The following functions are provided to interact with this module:



Back To Top

GOG_Apps_GetCurrentGameLanguage

This function returns the current game language for the given product ID.


Syntax:

GOG_Apps_GetCurrentGameLanguage(productID)
Argument Type Description
productID Int64 The ID of the game or DLC to check.



Returns:

String


Example:

var _language = GOG_Apps_GetCurrentGameLanguage(productID);

The code sample above will return the current game language for the provided product identifier.




Back To Top

GOG_Apps_IsDlcInstalled

This function checks if the specified DLC is installed.


Syntax:

GOG_Apps_IsDlcInstalled(productID)
Argument Type Description
productID Int64 The ID of the DLC to check.



Returns:

Boolean


Example:

if(GOG_Apps_IsDlcInstalled(productID))
{
    //Do something with this DLC
}

The code sample above will check if a given DLC is installed. The developer can then decide what should be done if it is.



Clone this wiki locally