Thunderbrd
C2C War Dog
It is doable from the XML, you don't need to do it from the dll. If you do you will break the XML, just like they did when they changed the maximum wonders per city. It is still there in the XML but it can't be changed by the player to what they want.
I'm still convinced that wherever the xml is coming in establishing a limit on a unit in the dll, it can be told not to if an Unlimited National Units option is selected. However, I've looked at some of the coding and my God, Koshling... maybe I'm looking for the wrong key words but this issue seems to be one of the more complicated issues in the dll and I don't want to touch it with a ten foot pole unless you can offer some guidance. You seem to have done a lot with this subject matter. This touches a great deal on a lot of your caches and compatibility improvements, very little of which I understand, so I don't want to create any problems here. I couldn't quite figure out where the root of establishing the unit limits was located anyhow.
DH, the problem with doing it via the xml is it then requires changing the xml to adjust your options. Players shouldn't have to have a clue what xml is to be able to select some basic preferences like this. Despite being a bit lost where to conduct a small code surgery, I still think it'd have to be a minor issue to make this possible. It does go nicely in line as on option as we already have the unlimited wonder option.