nickbabcock / Pdoxcl2Sharp

A Paradox Interactive general file parser
MIT License
39 stars 13 forks source link

Validate ReadBool #26

Closed nickbabcock closed 10 years ago

nickbabcock commented 10 years ago

Right now ReadBool works by simply comparing the read string to 'yes'. Well, what if the read string wasn't 'yes' or 'no'? An exception should definitely be thrown detailing that the read string wasn't 'yes' or 'no'