Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.6.2gt_input子目录时有两份缓存 #132

Closed
fatecyx opened this issue Aug 16, 2024 · 2 comments
Closed

5.6.2gt_input子目录时有两份缓存 #132

fatecyx opened this issue Aug 16, 2024 · 2 comments

Comments

@fatecyx
Copy link

fatecyx commented Aug 16, 2024

比如有个文件
gt_input/data/Armors.json.json
缓存会生成
data-}Armors.json.json
之后又会生成一份
Armors.json.json

data-}Armors.json.json里面,应该是翻译后的版本,没有之后的插件和problem之类的处理
Armors.json.json里面才是经过插件处理的,有problem相关信息的结果

但是程序读取缓存时,读的是data-}Armors.json.json,人工对Armors.json.json的任何修改都无效

@fatecyx
Copy link
Author

fatecyx commented Aug 17, 2024

第二次保存时的路径和第一次写的不一样,我抄过去就好了:
cache_file_path = joinpath(
projectConfig.getCachePath(), basename(file_name)
)
改成
cache_file_path = joinpath(
projectConfig.getCachePath(),
file_name.replace(projectConfig.getInputPath(), "").lstrip(os_sep).replace(os_sep, "-}")
)

@PiDanShouRouZhouXD
Copy link
Collaborator

PiDanShouRouZhouXD commented Aug 17, 2024

比如有个文件 gt_input/data/Armors.json.json 缓存会生成 data-}Armors.json.json 之后又会生成一份 Armors.json.json

gt_input 不支持多层文件夹结构,请打平层级后再翻译。
我的锅,我看看怎么修

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants