[PR #446] SAVE-DATA-BLOB: import save payloads under the title's blob name #497

Open
opened 2026-11-26 20:18:04 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/446
Author: @bobcatchris
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: saves-blob-name


📝 Commits (1)

  • 95db9aa saves: import the payload as "Save Game Data", the name the title asks for

📊 Changes

3 files changed (+26 additions, -9 deletions)

View changed files

📝 docs/saves.md (+10 -3)
📝 tests/test_saves.py (+5 -2)
📝 tools/saves.py (+11 -4)

📄 Description

Claimed in the coordination issue as: SAVE-DATA-BLOB

What and why

saves.py import wrote the payload under the payload file name on a guess that the docs marked VERIFY. The executable settles the data-blob name statically: XGameSaveSubmitBlobWrite is called with "Save Game Header" first and "Save Game Data" with the payload, and the read path matches the same two names. A payload imported under any other name is never read back.

This writes imported payloads as Save Game Data (still %-encoded on disk by the existing layout) and updates docs/saves.md to separate what was measured from what was not. Container names remain a guess because neither CreateContainer call passes a literal; --map still overrides either name. No real save files, save contents, keys or game data are included.

Tested

  • python -I tests/test_saves.py — 70 tests OK, 1 skipped
  • python -I tests/test_docs_links.py — 16 tests OK
  • python -I tests/test_docs_cli_flags.py — 4 tests OK
  • python -m compileall -q tools tests — OK
  • git diff --check — clean
  • security sweep of the diff — 0 hits

GPUs tested: n/a (CPU-only tool and documentation change)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • No new translator rule.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/446 **Author:** [@bobcatchris](https://github.com/bobcatchris) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `saves-blob-name` --- ### 📝 Commits (1) - [`95db9aa`](https://github.com/ubiquitarianism/leonida/commit/95db9aa1413d190bbf7eb7da1e3c7f54defcf466) saves: import the payload as "Save Game Data", the name the title asks for ### 📊 Changes **3 files changed** (+26 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/saves.md` (+10 -3) 📝 `tests/test_saves.py` (+5 -2) 📝 `tools/saves.py` (+11 -4) </details> ### 📄 Description Claimed in the coordination issue as: SAVE-DATA-BLOB ### What and why `saves.py import` wrote the payload under the payload file name on a guess that the docs marked VERIFY. The executable settles the data-blob name statically: `XGameSaveSubmitBlobWrite` is called with `"Save Game Header"` first and `"Save Game Data"` with the payload, and the read path matches the same two names. A payload imported under any other name is never read back. This writes imported payloads as `Save Game Data` (still %-encoded on disk by the existing layout) and updates `docs/saves.md` to separate what was measured from what was not. Container names remain a guess because neither `CreateContainer` call passes a literal; `--map` still overrides either name. No real save files, save contents, keys or game data are included. ### Tested - `python -I tests/test_saves.py` — 70 tests OK, 1 skipped - `python -I tests/test_docs_links.py` — 16 tests OK - `python -I tests/test_docs_cli_flags.py` — 4 tests OK - `python -m compileall -q tools tests` — OK - `git diff --check` — clean - security sweep of the diff — 0 hits GPUs tested: n/a (CPU-only tool and documentation change) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] No new translator rule. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#497
No description provided.