Skip to content

Commit

Permalink
Use Path.Combine
Browse files Browse the repository at this point in the history
It's more concise then concatenating with the separator char
  • Loading branch information
blowfishpro committed Sep 29, 2017
1 parent 13850b6 commit cd3a468
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ModuleManager/MMPatchLoader.cs
Expand Up @@ -75,14 +75,13 @@ private void Awake()
Instance = this;
DontDestroyOnLoad(gameObject);

cachePath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "GameData" + Path.DirectorySeparatorChar + "ModuleManager.ConfigCache";
techTreeFile = "GameData" + Path.DirectorySeparatorChar + "ModuleManager.TechTree";
techTreePath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + techTreeFile;
physicsFile = "GameData" + Path.DirectorySeparatorChar + "ModuleManager.Physics";
physicsPath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + physicsFile;
defaultPhysicsPath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "Physics.cfg";
partDatabasePath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "PartDatabase.cfg";
shaPath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "GameData" + Path.DirectorySeparatorChar + "ModuleManager.ConfigSHA";
cachePath = Path.Combine(Path.Combine(KSPUtil.ApplicationRootPath, "GameData"), "ModuleManager.ConfigCache");
techTreeFile = Path.Combine("GameData", "ModuleManager.TechTree");
techTreePath = Path.Combine(KSPUtil.ApplicationRootPath, techTreeFile);
physicsFile = Path.Combine("GameData", "ModuleManager.Physics");
physicsPath = Path.Combine(KSPUtil.ApplicationRootPath, physicsFile);
defaultPhysicsPath = Path.Combine(KSPUtil.ApplicationRootPath, "Physics.cfg");
shaPath = Path.Combine(Path.Combine(KSPUtil.ApplicationRootPath, "GameData"), "ModuleManager.ConfigSHA");

logger = new ModLogger("ModuleManager", Debug.logger);
}
Expand Down

0 comments on commit cd3a468

Please sign in to comment.