Nuclide
Software Development Kit for id Tech
updates.qc File Reference

Classes

struct  update_t
 

Macros

#define FN_UPDATE_IMGURL   "http://www.frag-net.com/dl/img/%s.jpg"
 

Functions

 string (float id, float b) getgamedirinfo = #292
 
 string (int packageidx, int desiredfield) getpackagemanagerinfo
 
void Updates_Init (void)
 Call this in order to contact the update server and fill the list of updates. More...
 
updaterStatus_t Updates_GetUpdaterStatus (void)
 Retrieve the status of the updater. More...
 
int Updates_GetPackageCount (void)
 Returns the total amount of updates available for the currently running game. More...
 
bool Updates_IsRecommended (string packageName)
 Checks a given package name and sees if it's in the list of recommended packages. More...
 
__variant Updates_GetInfo (int packageID, updateType_t fieldType)
 Query a package (by ID) for its various info fields. More...
 
bool Updates_Available (void)
 Returns if our current game has updates available for any installed packages. More...
 
bool Updates_Toggle (int packageID)
 Toggle the installation/disabling of an update. More...
 
bool Updates_Install (int packageID)
 Mark an update as pending installion. More...
 
bool Updates_Remove (int packageID)
 Mark an update as pending deletion. More...
 
bool Updates_Destroy (int packageID)
 Mark an update as pending uninstallation. More...
 
bool Updates_ApplyPendingChanges (void)
 Apply all pending changes to packages. More...
 
void Updater_URI_Callback (float id, float code, string data, int resourcebytes)
 

Variables

int g_platform_update_count
 
update_tupdates
 
var updaterStatus_t updater_package_status = UPDATER_NONE
 

Macro Definition Documentation

◆ FN_UPDATE_IMGURL

#define FN_UPDATE_IMGURL   "http://www.frag-net.com/dl/img/%s.jpg"

Function Documentation

◆ string() [1/2]

string ( float  id,
float  b 
) = #292

◆ string() [2/2]

string ( int  packageidx,
int  desiredfield 
)

◆ Updater_URI_Callback()

void Updater_URI_Callback ( float  id,
float  code,
string  data,
int  resourcebytes 
)

◆ Updates_ApplyPendingChanges()

bool Updates_ApplyPendingChanges ( void  )

Apply all pending changes to packages.

May return true/false if it succeeded in doing so.

◆ Updates_Available()

bool Updates_Available ( void  )

Returns if our current game has updates available for any installed packages.

◆ Updates_Destroy()

bool Updates_Destroy ( int  packageID)

Mark an update as pending uninstallation.

May return true/false if it succeeded in marking the package.

◆ Updates_GetInfo()

__variant Updates_GetInfo ( int  packageID,
updateType_t  fieldType 
)

Query a package (by ID) for its various info fields.

See updateType_t for available fields.

◆ Updates_GetPackageCount()

int Updates_GetPackageCount ( void  )

Returns the total amount of updates available for the currently running game.

◆ Updates_GetUpdaterStatus()

updaterStatus_t Updates_GetUpdaterStatus ( void  )

Retrieve the status of the updater.

See updaterStatus_t for valid return values.

◆ Updates_Init()

void Updates_Init ( void  )

Call this in order to contact the update server and fill the list of updates.

◆ Updates_Install()

bool Updates_Install ( int  packageID)

Mark an update as pending installion.

May return true/false if it succeeded in marking the package.

◆ Updates_IsRecommended()

bool Updates_IsRecommended ( string  packageName)

Checks a given package name and sees if it's in the list of recommended packages.

◆ Updates_Remove()

bool Updates_Remove ( int  packageID)

Mark an update as pending deletion.

May return true/false if it succeeded in marking the package.

◆ Updates_Toggle()

bool Updates_Toggle ( int  packageID)

Toggle the installation/disabling of an update.

May return true/false if it succeeded in marking the package.

Variable Documentation

◆ g_platform_update_count

int g_platform_update_count

◆ updater_package_status

var updaterStatus_t updater_package_status = UPDATER_NONE

◆ updates

update_t* updates