修复在windows下文件参数中不同文件分隔符引起的热更新机制失效问题。

This commit is contained in:
John
2018-05-15 15:07:01 +08:00
parent 9ce65c195a
commit 5e4b100def

View File

@ -61,8 +61,8 @@ func (sp *SPath) Search(name string) string {
if path == "" {
sp.mu.RLock()
for _, v := range sp.paths {
path = v + gfile.Separator + name
if gfile.Exists(path) {
path = gfile.RealPath(v + gfile.Separator + name)
if path != "" && gfile.Exists(path) {
break
}
}