mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
Allows us to consume an array of strings and convert it to an mask of enum values. This is a quality of life change that allows us to specify a mask of options. The first configuration option added to support this is to control the vixl disassembler. Now by default the vixl disassembler doesn't disassemble any blocks and needs to be enabled individually. eg: ``` FEXLoader --disassemble=blocks <args> FEXLoader --disassemble=dispatcher <args> FEXLoader --disassemble=blocks,dispatcher <args> ``` Has the additional convenience option of just passing in numbers as well. ``` FEXLoader --disassemble=2 <args> FEXLoader --disassemble=1 <args> FEXLoader --disassemble=3 <args> ``` Also of course all of this works through environment variables. ``` FEX_DISASSEMBLE=blocks FEXInterpreter <args> FEX_DISASSEMBLE=dispatcher FEXInterpreter <args> FEX_DISASSEMBLE=blocks,dispatcher FEXInterpreter <args> ``` While only used fairly sparingly now, this is likely to have some additional configurations using this in the future. Since we already have some configs that are basically using enums, but just by doing string comparisons. This was asked for by a developer, so I figured I would throw it together quick.