GOG GALAXY SDK Documentation
IApps Class Referenceabstract

The interface for managing application activities. More...

#include <IApps.h>

Public Member Functions

virtual bool IsDlcInstalled (ProductID productID)=0
 Checks if specified DLC is installed. More...
 
virtual void IsDlcOwned (ProductID productID, IIsDlcOwnedListener *const listener)=0
 Check if user has license for specified DLC. More...
 
virtual const char * GetCurrentGameLanguage (ProductID productID=0)=0
 Returns current game language for given product ID. More...
 
virtual void GetCurrentGameLanguageCopy (char *buffer, uint32_t bufferLength, ProductID productID=0)=0
 Copies the current game language for given product ID to a buffer. More...
 
virtual const char * GetCurrentGameLanguageCode (ProductID productID=0)=0
 Returns current game language code for given product ID. More...
 
virtual void GetCurrentGameLanguageCodeCopy (char *buffer, uint32_t bufferLength, ProductID productID=0)=0
 Copies the current game language code for given product ID to a buffer. More...
 

Detailed Description

The interface for managing application activities.

Remarks
This interface is fully functional in any situation when Init() reports an error except IsDlcOwned() method which requires to be logged via GalaxyClient (signed in and logged in).

Member Function Documentation

◆ GetCurrentGameLanguage()

virtual const char* GetCurrentGameLanguage ( ProductID  productID = 0)
pure virtual

Returns current game language for given product ID.

Language name is returned in lowercase, ex. "english", "polish".

Parameters
[in]productIDThe ID of the game or DLC to check. Zero means the base game itself.
Returns
current game language for given product ID.

◆ GetCurrentGameLanguageCode()

virtual const char* GetCurrentGameLanguageCode ( ProductID  productID = 0)
pure virtual

Returns current game language code for given product ID.

Language code consists of ISO-639 language code and ISO-3166 country code, ex. "en-US", "pl-PL".

Parameters
[in]productIDThe ID of the game or DLC to check.
Returns
current game language code for given product ID. Zero means the base game itself.

◆ GetCurrentGameLanguageCodeCopy()

virtual void GetCurrentGameLanguageCodeCopy ( char *  buffer,
uint32_t  bufferLength,
ProductID  productID = 0 
)
pure virtual

Copies the current game language code for given product ID to a buffer.

Language code consists of ISO-639 language code and ISO-3166 country code, ex. "en-US", "pl-PL".

Parameters
[in,out]bufferThe output buffer.
[in]bufferLengthThe size of the output buffer.
[in]productIDThe ID of the game or DLC to check. Zero means the base game itself.

◆ GetCurrentGameLanguageCopy()

virtual void GetCurrentGameLanguageCopy ( char *  buffer,
uint32_t  bufferLength,
ProductID  productID = 0 
)
pure virtual

Copies the current game language for given product ID to a buffer.

Language name is returned in lowercase, ex. "english", "polish".

Parameters
[in,out]bufferThe output buffer.
[in]bufferLengthThe size of the output buffer.
[in]productIDThe ID of the game or DLC to check. Zero means the base game itself.

◆ IsDlcInstalled()

virtual bool IsDlcInstalled ( ProductID  productID)
pure virtual

Checks if specified DLC is installed.

Parameters
[in]productIDThe ID of the DLC to check.
Returns
true if specified DLC is installed, false otherwise.

◆ IsDlcOwned()

virtual void IsDlcOwned ( ProductID  productID,
IIsDlcOwnedListener *const  listener 
)
pure virtual

Check if user has license for specified DLC.

Note: this method requires user to be signed in and logged in with Galaxy Client.

Parameters
[in]productIDProduct ID of DLC to check.
[in]listenerListener for asynchronous response.