Convert the AES Lanier decoder.

This commit is contained in:
David Given
2021-07-11 12:55:05 +02:00
parent f8674230ed
commit 92aa28cac2
3 changed files with 52 additions and 53 deletions

View File

@@ -32,7 +32,8 @@ std::unique_ptr<AbstractDecoder> AbstractDecoder::create(const DecoderProto& con
static const std::map<int,
std::function<std::unique_ptr<AbstractDecoder>(const DecoderProto&)>> decoders =
{
{ DecoderProto::kAmiga, createAmigaDecoder },
{ DecoderProto::kAeslanier, createAesLanierDecoder },
{ DecoderProto::kAmiga, createAmigaDecoder },
};
auto decoder = decoders.find(config.format_case());
@@ -50,9 +51,6 @@ std::unique_ptr<AbstractDecoder> AbstractDecoder::create(const DecoderProto& con
case DecoderProto::kAeslanier:
return std::unique_ptr<AbstractDecoder>(new AesLanierDecoder(config.aeslanier()));
case DecoderProto::kAmiga:
return std::unique_ptr<AbstractDecoder>(new AmigaDecoder(config.amiga()));
case DecoderProto::kApple2:
return std::unique_ptr<AbstractDecoder>(new Apple2Decoder(config.apple2()));