twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

Fix node graphs being loaded with a null byte appended #146

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

FileSystem_LoadFileIntoBuffer currently always appends a null terminator regardless of whether it's text or binary data. Fix this to only append it if it's meant to be interpreted as text.

SamVanheer commented 2 years ago

Fixed by https://github.com/SamVanheer/halflife-updated/commit/609eafda578c27960510c08d1d69f59447bdb264