Exemple #1
0
void load(const char *name, int size)
{
	load_dep(name);
	if (in_short(name, size)) {
		snprintf(path, size + KERN_MODULE_ADDITIONAL_LEN + 1,
			 KERN_MODULE_PREFIX "%s" KERN_MODULE_SUFFIX, name);
		cprintf(LOADING "%s\n", path);
		load_mod(path);
	} else {
		load_mod(name);
	}
}
Exemple #2
0
SOUNDCLIP *my_load_mod(const char *filname, int repet)
{

  JGMOD *modPtr = load_mod((char *)filname);
  if (modPtr == NULL)
    return NULL;

  thismod = new MYMOD();
  thismod->done = 0;
  thismod->tune = modPtr;
  thismod->repeat = repet;

  return thismod;
}