Skip to content

Commit

Permalink
[#80] Support for HxC Floppy Emulator *.HFE images (Part 3: Shugart b…
Browse files Browse the repository at this point in the history
…us HD floppy drives)
  • Loading branch information
tomas-nestorovic committed Jan 3, 2024
1 parent 5b1ae57 commit 93116a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Main/src/HFE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ formatError: ::SetLastError(ERROR_BAD_FORMAT);
if (header.floppyInterface<TFloppyInterface::LAST_KNOWN)
switch (pFormat->mediumType){
case Medium::FLOPPY_DD:{
static constexpr TFloppyInterface Compatibles[]={ TFloppyInterface::IBM_PC_DD, TFloppyInterface::ATARI_ST_DD, TFloppyInterface::AMIGA_DD, TFloppyInterface::CPC_DD, TFloppyInterface::GENERIC_SHUGART_DD, TFloppyInterface::MSX2_DD, TFloppyInterface::C64_DD, TFloppyInterface::EMU_SHUGART, TFloppyInterface::S950_DD };
static constexpr TFloppyInterface Compatibles[]={ TFloppyInterface::IBM_PC_DD, TFloppyInterface::ATARI_ST_DD, TFloppyInterface::AMIGA_DD, TFloppyInterface::CPC_DD, TFloppyInterface::GENERIC_SHUGART, TFloppyInterface::MSX2_DD, TFloppyInterface::C64_DD, TFloppyInterface::EMU_SHUGART, TFloppyInterface::S950_DD };
if (::memchr( Compatibles, header.floppyInterface, sizeof(Compatibles) ))
break;
return ERROR_UNRECOGNIZED_MEDIA;
Expand All @@ -210,7 +210,7 @@ formatError: ::SetLastError(ERROR_BAD_FORMAT);
}
case Medium::FLOPPY_HD_525:
case Medium::FLOPPY_HD_350:{
static constexpr TFloppyInterface Compatibles[]={ TFloppyInterface::IBM_PC_HD, TFloppyInterface::ATARI_ST_HD, TFloppyInterface::AMIGA_HD, TFloppyInterface::S950_HD };
static constexpr TFloppyInterface Compatibles[]={ TFloppyInterface::IBM_PC_HD, TFloppyInterface::ATARI_ST_HD, TFloppyInterface::AMIGA_HD, TFloppyInterface::S950_HD, TFloppyInterface::GENERIC_SHUGART };
if (::memchr( Compatibles, header.floppyInterface, sizeof(Compatibles) ))
break;
return ERROR_UNRECOGNIZED_MEDIA;
Expand Down
2 changes: 1 addition & 1 deletion Main/src/HFE.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
AMIGA_DD,
AMIGA_HD,
CPC_DD,
GENERIC_SHUGART_DD,
GENERIC_SHUGART,
IBM_PC_ED,
MSX2_DD,
C64_DD,
Expand Down

0 comments on commit 93116a3

Please sign in to comment.