USB networking and an on-device scraper (ScreenScraper)

未关闭
#135 7 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp

调研方向

The proposal spans USB gadget modes, System Settings, a C++ ScreenScraper client, Puppy gamelist.xml support, and CI secrets; it does not name source files or tests. Start by checking the roadmap and the existing USB configuration and Puppy media handling. The author offers to split this into separate changes; done criteria for each part need to be agreed with maintainers.

由索引模型根据 Issue 内容生成。

描述

USB Networking is on the roadmap, so I tried it on my A33. The data port can become a CDC NCM network adapter, which Windows 10 and 11, macOS, Linux and Android drive with no driver to install. The PC shares its connection with it, or an Android phone does through its Ethernet tethering, with the console on the phone's OTG adapter, and udhcpc on the console takes the address. The A33's USB controller has five endpoints each way, so serial, MTP and NCM don't fit together. It works as a mode instead: Files (serial and MTP, the default) or Network (serial and NCM), switched from System Settings. In the default mode the gadget is the same as today, so it shouldn't bring back the tty trouble from #9.

With the internet there, I wrote a small scraper that runs on the console. It asks ScreenScraper about each game by its CRC and size, writes gamelist.xml plus a gamelist..xml with the descriptions in the interface's language, and downloads the picture, and a video if the user wants one, into media/. It's a small C++ program with no libraries that calls curl, so the image only gains libcurl, curl and the CA bundle, about 750 KB. Each user types their own free ScreenScraper account in System Settings. It's working on my console.

ScreenScraper also requires developer credentials for each piece of software. I asked for them for goodluckOS on their forum and they were granted: https://www.screenscraper.fr/forumsujet.php?frub=12&fsuj=26271

They go in at build time from SS_DEVID and SS_DEVPASSWORD, so the CI would need them as secrets. Would you rather request your own developer account for the project, or use the one I got?

Puppy on main only shows icons/.png, so the scraper also needs Puppy to read gamelist.xml. If you're interested, I can split it into small PRs: USB networking first, then gamelist support in Puppy, then the scraper.

主要语言
C++
星标
54
派生
8
平均合并
16 天 19 小时
30 天内合并 PR
4

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeZombie/goodluckOS 的其他 Issue

查看 CodeZombie/goodluckOS 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。