Core: Use long commit hash instead of abbreviating#5307
Core: Use long commit hash instead of abbreviating#5307neobrain merged 1 commit intoFEX-Emu:mainfrom
Conversation
|
Will need accompanying proton changes |
|
Done, assuming you refer to the steam VERSIONS file |
|
A potentially notable edge case: odd-numbered hash lengths don't work here: static constexpr std::array<uint8_t, 20> GIT_HASH = {0x12, 0x34, 0x56, a};Could be solved by padding with a singular 0 if the length is odd? |
|
wait, could just use a list |
|
Okay, technically it isn't "correct" per se, but it's all I think is necessary for an edge case like this static constexpr std::array<uint8_t, 20> GIT_HASH = {0x12, 0x34, 0x56, 0xa}; |
What's the problem and how did you solve it? |
|
The previous problem was caused by implanting a To solve it, I just used ...and now I solved it by adding another case in the regex for that. yay! |
neobrain
left a comment
There was a problem hiding this comment.
Just noting for reference that this should be tested on arm64 and that the unrelated changes should be confirmed functional as pointed out in my other comments.
|
Thanks, looks all good now - could you squash the patches together appropriately? |
Fixes FEX-Emu#5230 Basically just stores it as an array of `uint8_t`, and automatically pads it out to 24 bytes. Hopefully FEX never reaches SHA1 collisions so this should (TM) never collide. Note: I have no idea how fmt will handle that format string with an array of uint8_t. Signed-off-by: crueter <crueter@eden-emu.dev>
|
done |
neobrain
left a comment
There was a problem hiding this comment.
Re-tested this against my WIP code caching patches, all working fine. Thanks again for picking this up!
Fixes #5230
Basically just stores it as an array of
uint8_t.Hopefully FEX never reaches SHA1 collisions so
this should (TM) never collide.
Signed-off-by: crueter crueter@eden-emu.dev