//----------------------------------------------------------------- // Initializes game properties data (including texture caching system) and sound data. int gamedata_init() { int retval; init_polygon_models(); init_endlevel();//adb: added, is also in bm_init_use_tbl (Chris: *Was* in bm_init_use_tbl) retval = properties_init(); // This calls properties_read_cmp if appropriate if (retval) gamedata_read_tbl(retval == PIGGY_PC_SHAREWARE); piggy_read_sounds(retval == PIGGY_PC_SHAREWARE); return 0; }
//----------------------------------------------------------------- // Initializes game properties data (including texture caching system) and sound data. int gamedata_init() { init_polygon_models(); init_endlevel(); #if DXX_USE_EDITOR // The pc_shareware argument is currently unused for Descent 2, // but *may* be useful for loading Descent 1 Shareware texture properties. if (!gamedata_read_tbl(0)) #endif if (!properties_init()) // This calls properties_read_cmp Error("Cannot open ham file\n"); piggy_read_sounds(); return 0; }
static int32_t xmms_visualization_client_register (xmms_visualization_t *vis, xmms_error_t *err) { int32_t id; xmms_vis_client_t *c; g_mutex_lock (&vis->clientlock); id = create_client (); if (id < 0) { xmms_error_set (err, XMMS_ERROR_OOM, "could not allocate dataset"); } else { /* do necessary initialisations here */ c = get_client (id); c->type = VIS_NONE; c->format = 0; properties_init (&c->prop); } g_mutex_unlock (&vis->clientlock); return id; }
//----------------------------------------------------------------- // Initializes game properties data (including texture caching system) and sound data. int gamedata_init() { init_polygon_models(); init_endlevel(); if (! properties_init()) // This calls properties_read_cmp #ifdef EDITOR // The pc_shareware argument is currently unused for Descent 2, // but *may* be useful for loading Descent 1 Shareware texture properties. if (!gamedata_read_tbl(0)) #endif Error("Cannot open ham file\n"); #ifdef EDITOR gamedata_read_tbl(0); // doesn't matter if it doesn't find it, given the ham file exists #endif piggy_read_sounds(); return 0; }