예제 #1
0
파일: aacs.c 프로젝트: DaveDaCoda/mythtv
int libaacs_required(void *have_file_handle, int (*have_file)(void *, const char *, const char *))
{
    if (have_file(have_file_handle, "AACS", "Unit_Key_RO.inf")) {
        BD_DEBUG(DBG_BLURAY, "AACS" DIR_SEP "Unit_Key_RO.inf found. Disc seems to be AACS protected.\n");
        return 1;
    }

    BD_DEBUG(DBG_BLURAY, "AACS" DIR_SEP "Unit_Key_RO.inf not found. No AACS protection.\n");
    return 0;
}
예제 #2
0
int libbdplus_required(void *have_file_handle, int (*have_file)(void *, const char *, const char *))
{
    if (have_file(have_file_handle, "BDSVM", "00000.svm")) {
        BD_DEBUG(DBG_BLURAY, "BDSVM" DIR_SEP "00000.svm found. Disc seems to be BD+ protected.\n");
        return 1;
    }

    BD_DEBUG(DBG_BLURAY, "BDSVM" DIR_SEP "00000.svm not found. No BD+ protection.\n");
    return 0;
}
예제 #3
0
int		parse_struct2(t_struct *st)
{
  char		*file;

  st->width = 1300;
  st->height = 750;
  st->map_sel = 1;
  if (init_my_sdl(st) == -1
      || (file = have_file(st)) == NULL)
    return (-1);
  st->map = my_getnbr(file);
  free(file);
  if (st->map <= 0 || st->map > 5)
    return (puterror("Error: The number of level-map is changed.\n"));
  aff_map(st);
  return (0);
}