+
+int emufs_did_agregar(EMUFS *efs, EMUFS_REG_ID n_regid)
+{
+ FILE *f_did;
+ char name_f_did[255];
+
+ strcpy(name_f_did, efs->nombre);
+ strcat(name_f_did, EMUFS_DID_EXT);
+
+ if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1;
+ fwrite(&n_regid, sizeof(EMUFS_REG_ID), 1, f_did);
+ fclose(f_did);
+
+ return 0;
+}
+