[PR #492] pe_inspect: reject missing --game-dir before scanning images #544

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

📋 Pull Request Information

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

Base: main ← Head: work/pe-inspect-validate-game-dir


📝 Commits (1)

  • a104a89 pe_inspect: reject missing --game-dir before scanning images

📊 Changes

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

View changed files

➕ tests/test_pe_inspect_game_dir.py (+48 -0)
📝 tools/pe_inspect.py (+3 -0)

📄 Description

Claimed in the coordination issue as: TOOL-PE-INSPECT-GAMEDIR (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149)

What and why

  • Rebased onto current main and squashed into one clean commit.
  • Validated --game-dir in tools/pe_inspect.py before scanning images and added regression tests in tests/test_pe_inspect_game_dir.py.

Tested

  • python -I tests/test_pe_inspect_game_dir.py (2/2 OK) on commit 17d5b5134.
  • All 12 tests/test_docs_*.py (OK) on commit 17d5b5134.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 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/492 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `work/pe-inspect-validate-game-dir` --- ### 📝 Commits (1) - [`a104a89`](https://github.com/ubiquitarianism/leonida/commit/a104a898c70bd8c773f247fc2848f2dab2ecf871) pe_inspect: reject missing --game-dir before scanning images ### 📊 Changes **2 files changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_pe_inspect_game_dir.py` (+48 -0) 📝 `tools/pe_inspect.py` (+3 -0) </details> ### 📄 Description Claimed in the coordination issue as: TOOL-PE-INSPECT-GAMEDIR (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149) ### What and why - Rebased onto current `main` and squashed into one clean commit. - Validated `--game-dir` in `tools/pe_inspect.py` before scanning images and added regression tests in `tests/test_pe_inspect_game_dir.py`. ### Tested - `python -I tests/test_pe_inspect_game_dir.py` (`2/2 OK`) on commit `17d5b5134`. - All 12 `tests/test_docs_*.py` (`OK`) on commit `17d5b5134`. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <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#544
No description provided.