c4d46a713f
This change introduces a new class to handle all of the INI options data, VbamOption. A VbamOption represents a single option in the INI file. It is not constructible outside of its implementation, which prevents the initialization of incorrectly formatted options. Internally, a VbamOption points to a global variable in memory, which holds the value used at runtime. This is because various parts of the codebase edit the global variable rather than going through a central registry. This also means we need to separately update the INI values. In the future, we may be able to convert all existing reads and writes to the global variable to go through VbamOption. Individual UX elements could link directly to getters/setters for a specific VbamOption rather than have duplicate data. VbamOption replaces the opt_desc struct and the global opts array. All users of opt_desc and the global opts array have been updated. This is a necessary preliminary change to better support a refactor of accelerators, through wxUserInput. Issue: #745, #158 |
||
---|---|---|
.. | ||
wxvbam | ||
CMakeLists.txt |