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

Macros

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

Functions

 string (float id, float b) getgamedirinfo
 
 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
 
updaterPackage_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 
)

◆ string() [2/2]

string ( int  packageidx,
int  desiredfield 
)

◆ Updater_URI_Callback()

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

◆ Updates_IsRecommended()

bool Updates_IsRecommended ( string  packageName)

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

Variable Documentation

◆ g_platform_update_count

int g_platform_update_count

◆ updater_package_status

var updaterStatus_t updater_package_status = UPDATER_NONE

◆ updates

updaterPackage_t* updates