I have done some menu restructuring tests on the add_ext_repos.sh script, which basically used the dialog api in the same way as our add-mamedev-systems.sh
I did this on this script because it still contained just 1 main-menu.
So this was an easy way to test my idea to use comma separate values in the array.
I wanted to make a structure so :the code is easy to read implementation of data is easy (now using csv style, which could also be considered as a 2 dimensional array in some way) it's possible to use exel/calc and cut/paste from a csv file for implementing the data, if needed data can be imported directly from a csv file, if needed not every menu needs a menu script (every menu/submenu should be built by the same function part) lesser code that can do the same thing
I hope and think it's a good idea for the base structure of our script and more scripts.
This is the code before and after, just to give you an idea on what I have done :