Add: WindowDesc unit test to validate ini-key value.

ini-key must be present if WWT_DEFSIZEBOX or WWT_STICKYBOX is present.
This was previously enforced by a workflow, however that parsed the source
code with regex which turned out to be error-prone.
This commit is contained in:
Peter Nelson
2023-11-02 19:33:02 +00:00
committed by Peter Nelson
parent 18fb8e153f
commit e563057478
3 changed files with 51 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ SpecialMouseMode _special_mouse_mode; ///< Mode of the mouse.
* List of all WindowDescs.
* This is a pointer to ensure initialisation order with the various static WindowDesc instances.
*/
static std::vector<WindowDesc*> *_window_descs = nullptr;
std::vector<WindowDesc*> *_window_descs = nullptr;
/** Config file to store WindowDesc */
std::string _windows_file;