alexguirre / RAGENativeUI

MIT License
113 stars 36 forks source link

Fix Localization issues introduced in b2372 #131

Closed alexguirre closed 2 years ago

alexguirre commented 2 years ago

On b2372 a new slot for additional text was added which shifted some members of CTextFile, so offset 0x258 was the main text map instead of OverridesTextMap. This somehow caused the call to CTextFile.GetStringByHash to return NULL, at least in the example code.

Now the OverridesTextMap offset is found with a pattern at startup.

Fixes #130.