OpenSWE1R / openswe1r

An Open-Source port of the 1999 Game "Star Wars Episode 1: Racer"
https://openswe1r.github.io/
GNU General Public License v2.0
312 stars 26 forks source link

Improve TranslatePath for CDs and fix CD check emulation #158

Closed JayFoxRox closed 5 years ago

JayFoxRox commented 6 years ago

Closes #157

This implements what I proposed in https://github.com/OpenSWE1R/openswe1r/issues/157#issuecomment-392179995:

The implementation first patches the CD path by mapping "d:/gnome/" to "d:/". This causes all versions of the game to behave the same. Read the comment in the code for more information.

Finally, the "d:/" folder is mapped to "./" which is assumed to be the games root folder.


This PR was only tested with the US CD version yet. Further testing has to be done to avoid regressions.

JayFoxRox commented 5 years ago

I'm really frustrated with the lack of reviews on this project, hence the lack of work. If this breaks OpenSWE1R for users, they will have to fix this.

Merged.