Save Variant Choice to a file or

Thank you very much.
To call the choice of setLevelVariant? How do I do that?