HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.75k stars 183 forks source link

vkd3d: Print build commit using a fixed width format. #2018

Closed Saancreed closed 2 weeks ago

Saancreed commented 2 weeks ago

Continuing https://github.com/HansKristian-Work/vkd3d-proton/pull/2017#discussion_r1642580774:

We indeed can't detect if the build was from a dirty tree based on vkd3d_build alone so check vkd3d_version for that instead. With this, we will always print 15 digits but with a + appended on dirty trees.

info:vkd3d_instance_init: vkd3d-proton - build: e20011164ce2450.

or

info:vkd3d_instance_init: vkd3d-proton - build: e20011164ce2450+.