配置 / 输入
输入来源抽象
注册表 → 安装路径VDF → 库路径列表ACF → 游戏元数据
数据结构设计
games = { appid: {"name": str,"path": str,"size": int, }}
设计
VDF 解析器
解析流程

手动解析原因
游戏扫描核心逻辑:
for lib in libraries:for manifest in steamapps: parse(manifest) extract(game_info)
运行 / 验证
1. 运行环境
2. 运行
python steam_helper.py
或在代码中调用:
from steam_helper import get_installed_gamesgames = get_installed_games()print(games)
3. 示例输出
{"570": {"name": "Dota 2","path": "D:\\SteamLibrary\\steamapps\\common\\dota 2 beta","size": 25000000000 }}