Comment 6 for bug 895535

Revision history for this message
pd (pdmail) wrote :

There is no real way to detect whether something is a list or not. In the end, it's all key -> value assignments.

Assignments that already exist are overriden by #included ini files, which is a great feature. Other than hardcoding section names, there is no good way to find out whether a section is a list or simply a good old fashioned section.
Not sure, but we might even have sections that are both.

The numbering problem modder666 mentioned came to my mind as well.
The order of numbers would of course equal the ini (inclusion) order. However, there are not many lists where the order actually matters (buildings, animations and overlay come to my mind).
This feature would still be a great help for lists such as VehicleTypes, InfantryTypes, or even #include itself.