mirror of
https://github.com/wangdage12/Snap.Hutao.git
synced 2026-02-17 12:56:38 +08:00
Update README with GetImage.py usage instructions
Added instructions for using GetImage.py to restore image resources from logs.
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
# 对开发有用的工具
|
||||
|
||||
对开发有用的工具,不参与编译
|
||||
|
||||
## GetImage.py
|
||||
|
||||
由于没有备份的图片资源,并且缓存目录中的图片名全部经过SHA1处理过,该工具用于通过请求日志在旧的资源文件夹中还原图片资源结构
|
||||
|
||||
### 用法
|
||||
|
||||
**先获取资源服务器上的404日志,如下所示**
|
||||
<img width="1161" height="57" alt="image" src="https://github.com/user-attachments/assets/54270165-f077-4c79-ae87-da16592e77fe" />
|
||||
复制404日志,粘贴到文本中
|
||||
|
||||
**然后修改脚本,确保路径正确**
|
||||
|
||||
从`GetImage.py:62`开始修改,确保路径正确,搜索路径一定要为旧资源文件夹,`username`是你的用户名,`60568DGPStudio.SnapHutao_wbnnev551gwxy1`改为你实际的旧数据文件夹
|
||||
|
||||
运行后将自动搜索缺失的文件,然后会在输出路径中生成原始文件,可以直接上传至服务器来补全图片资源
|
||||
|
||||
Reference in New Issue
Block a user