MaKiPL / OpenVIII-monogame

Open source Final Fantasy VIII engine implementation in C# working on Windows and Linux (Android and iOS planned too!) [Monogame]
MIT License
645 stars 59 forks source link

Fixed reading gamepath from registry #112

Closed noctarius closed 5 years ago

noctarius commented 5 years ago

Just downloaded the game from Steam using latest client version on Windows 10 (Preview 18922, not sure that created the issue). Anyways, for me the key is under the 64bit registry view.

I fixed it by iterating over both 32 and 64bit, in that order. I also did it for either version (Steam, CD version), whereas I'm pretty sure, CD version might be 32bit only. Feel free to fix it accordingly ;-)

I also fixed a potential NullPointer in the CD version reg reading, if the key does not exists.

MaKiPL commented 5 years ago

Thank you for contribution!