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

添加一个关于游戏路径的cache功能,多次获得游戏路径时不再需要保持游戏运行 #1

Closed
wants to merge 1 commit into from

Conversation

Nihility-Protoss
Copy link

添加一个get_path_from_cache方法,在运行get_wuthering_waves_progress_path前先寻找/data/path_cache.txt文件,确定是否保存过游戏路径,若未保存,则通过进程查找该应用,若存在,则直接返回正确格式的path。

本地测试无法编译release,使用的是1.80.1的x86_64-pc_windows-gnu工具链,没法-lshlwapi,很奇怪……

@ningnao
Copy link
Owner

ningnao commented Aug 20, 2024

感谢!
你提到的cannot find -lshlwapi我看到在egui的issues中有相关讨论,使用x86_64-pc_windows-gnu工具链的时候会有这个问题

回到这个pr:
需要考虑多客户端共存的情况,比如同时有国服和国际服客户端的情况... 还有例如调整安装目录的特殊情况
另外观察到由于抽卡统计改动,目前获取到的抽卡参数有效期非常短,缓存抽卡链接/离线刷新似乎已经没有意义了,而取最新的抽卡链接需要打开游戏重新点击一下抽卡统计,所以需要考虑是否有必要缓存目录呢

@ningnao ningnao closed this Oct 25, 2024
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

Successfully merging this pull request may close these issues.

2 participants