zetaPRIME / MultiBound

Starbound profile launcher (deprecated; MultiBound 2 is out)
https://github.com/zetaprime/MultiBound2
MIT License
15 stars 1 forks source link

Fails to find the right “Starbound” when walking up the executable pathname #2

Closed NotMrFlibble closed 8 years ago

NotMrFlibble commented 8 years ago

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Directory '…/Starbound/testing/Starbound/linux/starbound/../../workshop/content/211820' not found.

Issue is that it's looking (case-insensitively) for leafname == “starbound”, and the executable name happens to match. Easiest is to edit MultiBound/Config.cs: StarboundRootPath = StarboundPath.Up(); However, to do this properly, a check needs to be made that the path is currently pointing at a directory.