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

Functions

voidmemrealloc (__variant *oldptr, int elementsize, int old_num, int new_num)
 
void ModServer_Refresh (void)
 Call this to initiate a lengthy process of updating the list of mods we can install in the custom game menu. More...
 
void ModServer_ParseList (string data)
 Function that interprets a mod-list. More...
 
void ModServer_ParseItem (string data)
 Function that interprets a mod-item entry. More...
 
void Updater_URI_Callback (float id, float code, string data, int resourcebytes)
 
void ModServer_URI_Callback (float id, float code, string data, int resourcebytes)
 

Function Documentation

◆ memrealloc()

void * memrealloc ( __variant oldptr,
int  elementsize,
int  old_num,
int  new_num 
)

◆ ModServer_ParseItem()

void ModServer_ParseItem ( string  data)

Function that interprets a mod-item entry.

ModServer_URI_Callback calls this when retrieving a MODSERVER_REQ_ITEM description. We then allocate a new mod entry in our mod-list and fill it with the data supplied.

Parameters
dataThe data string that will fill up a newly allocated entry.

◆ ModServer_ParseList()

void ModServer_ParseList ( string  data)

Function that interprets a mod-list.

ModServer_URI_Callback calls this when retrieving a MODSERVER_REQ_ITEM description. Will in return call uri_get with code MODSERVER_REQ_ITEM on every game dir we don't have installed locally. Thus filling the mod list with entries we can install.

Parameters
dataWhite-space separated list of unique mod game directory names.

◆ ModServer_Refresh()

void ModServer_Refresh ( void  )

Call this to initiate a lengthy process of updating the list of mods we can install in the custom game menu.

◆ ModServer_URI_Callback()

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

◆ Updater_URI_Callback()

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