Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix GetSupportDir not returning an absolute path #13525
Current bleed crashes with a misleading exception when using a Support dir. This fixes it.
btw at least on Windows there is small issue, not causing an error though, as e.g. File.Exists(Open) works also with such path with double \ e.g.:
ResolvePath is called with Path.Combine("^", "settings.yaml") or "^testpath". ResolvePath removes only ^: SupportDir + path.Substring(1) and SupportDir contains \ at the end.
IMO Path.Combine shouldn't be used with ^, simply "^settings.yaml", "^ModMetadata" or \ should be removed in ResolvePath.