TombRunners / autosplitters

Tomb Raider Livesplit autosplitter code.
MIT License
1 stars 4 forks source link

Fixed a mismatched variable size causing an overflow and degrading LiveSplit performance. #76

Closed MidgeOnGithub closed 1 year ago

MidgeOnGithub commented 1 year ago

While the C/C++ code might dictate that GameTimer is a ulong, a 32-bit application will still compile that variable into a 32-bit unsigned integer. Writing ulong in C#, however, dictates specifically a 64-bit unsigned integer.

The mistake led to LiveSplit reading extra bits which could eventually be assigned values; this could lead to readouts in the quadrillions and beyond.

Because TRUtil.dll changed, all autosplitters received a version bump.