From 720cc0d9bb0e489a856d7c764a2caa399cb05e95 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 17 Jul 2017 09:47:25 -0500 Subject: [PATCH] fix path manager support of fully rooted paths (e.g. c:\roms) --- BizHawk.Client.Common/PathManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BizHawk.Client.Common/PathManager.cs b/BizHawk.Client.Common/PathManager.cs index be0fdf0ca6..9543368fd8 100644 --- a/BizHawk.Client.Common/PathManager.cs +++ b/BizHawk.Client.Common/PathManager.cs @@ -134,6 +134,9 @@ namespace BizHawk.Client.Common return path; } + if (Path.IsPathRooted(path)) + return path; + //handling of initial .. was removed (Path.GetFullPath can handle it) //handling of file:// or file:\\ was removed (can Path.GetFullPath handle it? not sure)