Refactor the way commands are passed.
Instead of passing a magic number and writing a comment of what it means, pass an enum.
Instead of copy-pasting the quality level parsing code, make it a lambda function.
This could still be done much cleaner, but its a first step.
It should be refactored to use command tables, some other time.
Refactor the way commands are passed. Instead of passing a magic number and writing a comment of what it means, pass an enum. Instead of copy-pasting the quality level parsing code, make it a lambda function.
This could still be done much cleaner, but its a first step.
It should be refactored to use command tables, some other time.