GeorgRottensteiner / C64Studio

C64Studio is a .NET based IDE specializing in game development for the C64 in assembler and BASIC
Other
252 stars 38 forks source link

Ignore color byte on commander x16 enum values #114

Closed Thraka closed 3 months ago

Thraka commented 3 months ago

I'm being presumptuous here, but I wanted to dive in and fix the issue :) I tried my best to follow your coding style.

This fix checks the name of the mode enum. If the name isn't related to the x16, it appends the color byte. This means any enum value that starts with the name COMMANDER_X16... won't have the color byte added.

Fixes #113

GeorgRottensteiner commented 3 months ago

Thanks! I did implement the fix in a different way though, as there's already a huge function collection querying all kind of mode infos (Lookup). Plus, whenever I feel the need to rename enums (you'd wonder) this might break. Implemented with commit #c54d5622984286fa270fc4deddf0b8e975344c31. Uploaded a new WIP build to https://www.georg-rottensteiner.de/webmisc/C64StudioRelease.zip