mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
2cc6c121f8
commit
7f79d1e70a
18 files changed
+757
-129
No files matched your search
+2
-1
@@ -220,6 +220,7 @@ func (r *Reader) loadRes(resPath string) {
|
||||
for i := range res.ColorSpaces.ColorSpace {
|
||||
cs := &res.ColorSpaces.ColorSpace[i]
|
||||
r.colorSpaceCache[cs.ID] = cs
|
||||
r.resourceFiles[cs.ID] = fullPath
|
||||
}
|
||||
for _, mm := range res.MultiMedias.MultiMedia {
|
||||
if mm.MediaFile != "" {
|
||||
@@ -456,7 +457,7 @@ func (r *Reader) ResPath(resLink string) string {
|
||||
if rootDir != "" && (resLink == rootDir || strings.HasPrefix(resLink, rootDir+"/")) {
|
||||
return resLink
|
||||
}
|
||||
return path.Join(r.RootDir, resLink)
|
||||
return cleanPackagePath(path.Join(r.RootDir, resLink))
|
||||
}
|
||||
|
||||
// ResData 获取资源文件数据
|
||||
|
||||
Reference in new issue
Block a user