Add a package-oriented Platform.ResolvePath() method

This commit is contained in:
Pavel Penev
2015-12-16 23:11:51 +02:00
parent b27cf8ea94
commit 0e53312a1d
4 changed files with 24 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenRA
public Sound(string engineName)
{
var enginePath = Platform.ResolvePath(".", "OpenRA.Platforms." + engineName + ".dll");
var enginePath = Platform.ResolvePath(Path.Combine(".", "OpenRA.Platforms." + engineName + ".dll"));
soundEngine = CreateDevice(Assembly.LoadFile(enginePath));
}