Ejemplo n.º 1
0
static char*
preferences_file (void)
{
  if (!name)
    name = get_non_null_rsc_file ("pref-file");
  return name;
}
Ejemplo n.º 2
0
void
init_locales (void)
{
  char *ldir = get_non_null_rsc_file ("locale-dir");

  setlocale (LC_ALL, "");
  bindtextdomain (PACKAGE, ldir);
  textdomain (PACKAGE);

  free (ldir);
}
Ejemplo n.º 3
0
int
read_level_list (void)
{
  char *dirname = get_non_null_rsc_file ("levels-dir");
  read_level_dir (dirname);
  free (dirname);

  /* Sort the levels array (files are numbered and we really
     want to play them in the right order).  */
  qsort (level_list, level_list_size, sizeof (*level_list), cmp_levels);
  return 0;
}