Things I've noticed
View Single Post
11-21-14, 07:16 AM
A Flamescale Wyrmkin
Join Date: Jul 2012
Originally Posted by
Also, what if author A uses this versioning scheme:
But author B uses this:
That shouldn't be a problem - the tricky part would be handling letters, such as 1.03a or 0.2(beta), etc.
if it was just numbers, then simply removing any decimal points after the first one, casting them as floats and comparing would be easy enough. You could even probably do some minor regex and at least check for any letters immediately following the numbers, cast them to a char, and compare the values.
I would imagine that would handle the vast majority of addons.
View Public Profile
Send a private message to Digital_Utopia
Find More Posts by Digital_Utopia