[PR #241] [CLOSED] ps_interp_modes: refuse a single named file without a readable PSV0 chunk #293

Closed
opened 2026-11-26 20:17:24 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/241
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/9972


📝 Commits (1)

  • f57fd70 ps_interp_modes: refuse a single named file without a readable PSV0 chunk

📊 Changes

2 files changed (+31 additions, -0 deletions)

View changed files

📝 tests/test_ps_interp_modes.py (+27 -0)
📝 tools/ps_interp_modes.py (+4 -0)

📄 Description

Carried over from old PR 9972 by al3xar in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9972, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
al3xar: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

AI-assisted.

Rebased onto current \main\ (\d083a2cc3); previously submitted as #7774 (closed during the bulk PR cleanup; had 5 independent passes on Windows/Linux).

Summary

  • Refuse a single explicitly named file that lacks a readable \PSV0\ chunk in \ ools/ps_interp_modes.py\ instead of succeeding with an empty result.
  • Add unit test coverage in \ ests/test_ps_interp_modes.py.

Verification

  • \python -I tests/test_ps_interp_modes.py: 32 tests OK (Windows 11, CPython 3.15, CPU only, synthetic inputs, no game files).
  • \python -I scripts/check_no_game_data.py tools/ps_interp_modes.py tests/test_ps_interp_modes.py: clean.

🔄 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/241 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/9972` --- ### 📝 Commits (1) - [`f57fd70`](https://github.com/ubiquitarianism/leonida/commit/f57fd7049d7cdb6afac50ebae7d7bedf1db41ff1) ps_interp_modes: refuse a single named file without a readable PSV0 chunk ### 📊 Changes **2 files changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_ps_interp_modes.py` (+27 -0) 📝 `tools/ps_interp_modes.py` (+4 -0) </details> ### 📄 Description > Carried over from **old PR 9972** by `al3xar` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9972`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `al3xar`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): AI-assisted. Rebased onto current \main\ (\d083a2cc3\); previously submitted as `#7774` (closed during the bulk PR cleanup; had 5 independent passes on Windows/Linux). ### Summary - Refuse a single explicitly named file that lacks a readable \PSV0\ chunk in \ ools/ps_interp_modes.py\ instead of succeeding with an empty result. - Add unit test coverage in \ ests/test_ps_interp_modes.py\. ### Verification - \python -I tests/test_ps_interp_modes.py\: 32 tests OK (Windows 11, CPython 3.15, CPU only, synthetic inputs, no game files). - \python -I scripts/check_no_game_data.py tools/ps_interp_modes.py tests/test_ps_interp_modes.py\: clean. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:24 +01:00
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#293
No description provided.