+int emufs_idx_get_cant_reg(EMUFS* emu)
+{
+ FILE *fp;
+ char name_f_idx[255];
+ long cant;
+ strcpy(name_f_idx,emu->nombre);
+ strcat(name_f_idx, EMUFS_IDX_EXT);
+
+ if ( (fp = fopen(name_f_idx, "r")) == NULL ) return -1;/*EMUFS_NOT_FOUND*/;
+ fseek(fp, 0, SEEK_END);
+ cant = ftell(fp)/sizeof(EMUFS_IDX);
+ fclose(fp);
+ return cant;
+}