H-uru / Plasma

Cyan Worlds's Plasma game engine
http://h-uru.github.io/Plasma/
GNU General Public License v3.0
202 stars 80 forks source link

Use metal-cpp's NS::ProcessInfo to get version #1552

Closed dpogue closed 6 months ago

dpogue commented 6 months ago

There's a C++ wrapper for NSProcessInfo in metal-cpp, and that's available to us since we're in pfMetalPipeline, and this allows us to avoid Objective-C in shared library code.

Since it returns a struct with just integers, we can also use ST::format to combine them into a string instead of needing to create and release an NSString.