wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
551 stars 331 forks source link

Update WireLib.GetVersion #3032

Closed Denneisk closed 4 months ago

Denneisk commented 4 months ago

Now outputs two values, first one is numerical representation of version similar to Gmod version constant, second is a fancy string representation for printing.

Output examples:

// Version number
240406

// Locally installed (git)
Local 2024.04.06 (master:bc614de)

// Workshop/Canary
Workshop 2024.04.06 (bc614de)
Canary 2024.04.06 (bc614de)

Add _WIREVERSION and _WIREVESRION_STR E2 constants to get version.

Removed SVN searching.

Fixes #3030