//============================================================================= // eFdd::Open //----------------------------------------------------------------------------- bool eFdd::Open(const char* type, const void* data, size_t data_size) { Motor(0); if(!strcmp(type, "trd")) return ReadTrd(data, data_size); if(!strcmp(type, "scl")) return ReadScl(data, data_size); if(!strcmp(type, "fdi")) return ReadFdi(data, data_size); return false; }
//============================================================================= // eFdd::Open //----------------------------------------------------------------------------- bool eFdd::Open(const char* type, const void* data, size_t data_size) { Motor(0); bool ok = false; if(!strcmp(type, "trd")) ok = ReadTrd(data, data_size); else if(!strcmp(type, "scl")) ok = ReadScl(data, data_size); else if(!strcmp(type, "fdi")) ok = ReadFdi(data, data_size); else if(!strcmp(type, "udi")) ok = ReadUdi(data, data_size); else if(!strcmp(type, "td0")) ok = ReadTd0(data, data_size); SAFE_CALL(disk)->Changed(false); return ok; }