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 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...
 

Detailed Description

The interface for managing application activities.

Remarks
This interface is fully functional in any situation when Init() reports an error.

Member Function Documentation

◆ GetCurrentGameLanguage()

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

Returns current game language for given product ID.

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

◆ 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.

Parameters
[in,out]bufferThe output buffer.
[in]bufferLengthThe size of the output buffer.
[in]productIDThe ID of the game or DLC to check.
Returns
current game language for given product ID.

◆ 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.