This commit is contained in:
Jesse Talavera-Greenberg 2023-10-31 21:17:51 -04:00
parent 9f73b083fd
commit b3597cb9b0
2 changed files with 26 additions and 0 deletions

25
.github/workflows/check-urls.yaml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Validate URLs
on:
push:
branches:
- main
paths: ["**.md", "**.yaml", "**.yml", "**.cpp", "**.hpp", "**.cmake", "**.txt"]
schedule:
- cron: "0 0 * * *" # Run every day at midnight UTC
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check Out Source
uses: actions/checkout@v3
- name: Validate URLs
uses: urlstechie/urlchecker-action@0.0.34
with:
file_types: .md,.yaml,.yml,.cpp,.hpp,.cmake,.txt
print_all: false
timeout: 10
retry_count: 3
exclude_patterns: http://nus.cdn.t.shop.nintendowifi.net/ccs/download/%08x%08x/tmd,http://www.gnu.org/licenses/

View File

@ -198,6 +198,7 @@ bool melonds::dsi::get_tmd(const NDSHeader &header, TitleMetadata &tmd, const ch
snprintf(url, sizeof(url), "http://nus.cdn.t.shop.nintendowifi.net/ccs/download/%08x%08x/tmd",
header.DSiTitleIDHigh, header.DSiTitleIDLow);
// The URL comes from here https://problemkaputt.de/gbatek.htm#dsisdmmcdsiwarefilesfromnintendosserver
// Example: http://nus.cdn.t.shop.nintendowifi.net/ccs/download/00030015484e4250/tmd
info("Downloading title metadata from \"{}\"", url);