BattletechModders / BattleTechModLoader

A simple mod loader and injector for HBS's PC game BattleTech.
The Unlicense
48 stars 10 forks source link

OSX: BTML search path for Mods folder broken #8

Closed ffaristocrat closed 6 years ago

ffaristocrat commented 6 years ago

Backslash isn't used for directory navigation on OSX. As a result, BTML creates & uses a folder literally named ..\..\..\Mods.

It needs to navigate the directory structure in an OS agnostic way.

schreiaj commented 6 years ago

https://github.com/Mpstark/BattleTechModLoader/blob/master/BattleTechModLoader/BTModLoader.cs#L111

Needs to look like Path.GetFullPath(Path.Combine({manifestDirectory, "..", "..", "..", "Mods"})

(I'm not much in the way of a C# dev, I'll take some time to figure out how to build it myself sometime this weekend)

ffaristocrat commented 6 years ago

For whatever reason, my(or BT's?) version of .NET doesn't have a version of Path.Combine that can simply take a list. Hence the more hacky nested version in my PR.

mpstark commented 6 years ago

Merged pull request.