/* * Load in the desk accessories specified by acc_name[] */ static void load_accs(WORD n) { WORD i; for (i = 0; i < n; i++) sndcli(acc_name[i]); }
/* * Routine to load in desk accessories. Files by the name of *.ACC * will be loaded. */ static void ldaccs(void) { register WORD i; WORD ret; strcpy(&D.g_dir[0], "*.ACC"); dos_sdta((LONG)D.g_dta); /* if Control is held down then skip loading of accs */ if ((kbshift(-1) & (1<<2))) return; ret = TRUE; for(i=0; (i<NUM_ACCS) && (ret); i++) { ret = (i==0) ? dos_sfirst(D.g_dir, F_RDONLY) : dos_snext(); if (ret) sndcli(&gl_dta[30]); } }