3.6.0 introduced a bad state that wouldn't have happened prior. The registry key that contains the path to the Sims install may not be correct. This would cause the patcher to try to read the bytes of an exe that didn't exist. This is part of the process to detect whether or not it could patch it and caused the program to not open for some users.
This PR fixes this issue by checking if the path from the registry key exists before returning it. If it does exist, return the path, if not, return an empty string. I also added more file exist checks to the patch process.
3.6.0 introduced a bad state that wouldn't have happened prior. The registry key that contains the path to the Sims install may not be correct. This would cause the patcher to try to read the bytes of an exe that didn't exist. This is part of the process to detect whether or not it could patch it and caused the program to not open for some users.
This PR fixes this issue by checking if the path from the registry key exists before returning it. If it does exist, return the path, if not, return an empty string. I also added more file exist checks to the patch process.