修复TextMeshPro Enable时找不到XCharts路径的问题 (#160)

This commit is contained in:
monitor1394
2021-07-26 21:28:13 +08:00
parent f69aa1d232
commit 708b08e701
3 changed files with 5 additions and 1 deletions

View File

@@ -39,6 +39,8 @@
## master ## master
* (2021.07.26) Fixed issue where `XCharts` path could not be found when `TextMeshPro Enable` (#160)
## v2.3.0 ## v2.3.0
### Main points ### Main points

View File

@@ -39,6 +39,8 @@
## master ## master
* (2021.07.26) 修复`TextMeshPro Enable`时找不到`XCharts`路径的问题 (#160)
## v2.3.0 ## v2.3.0
### 版本要点 ### 版本要点

View File

@@ -337,7 +337,7 @@ namespace XCharts
// Search for potential alternative locations in the user project // Search for potential alternative locations in the user project
string[] matchingPaths = Directory.GetDirectories(packagePath, "XCharts", SearchOption.AllDirectories); string[] matchingPaths = Directory.GetDirectories(packagePath, "XCharts", SearchOption.AllDirectories);
string path = ValidateLocation(matchingPaths, packagePath); string path = ValidateLocation(matchingPaths, packagePath);
if (path != null) return packagePath + path; if (path != null) return Path.Combine(packagePath, path);
} }
return null; return null;