[PR #702] gdk_runtime_calls: protect runtime-source directory files from collision (OLD-8468) #741

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/702
Author: @abnalstlll-byte
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: feat/gdk-runtime-source-collision


📝 Commits (1)

  • 35b0895 gdk_runtime_calls: protect runtime-source directory files from being overwritten by --out

📊 Changes

2 files changed (+52 additions, -7 deletions)

View changed files

📝 tests/test_gdk_runtime_calls.py (+37 -0)
📝 tools/gdk_runtime_calls.py (+15 -7)

📄 Description

Summary

Restores old upstream PR 8468 (OLD-8468).

When --runtime-source\ is a directory of \xgameruntime*.cpp\ (such as the default
untime/shims), \main()\ checked only \if os.path.isfile(a.runtime_source): inputs.append(a.runtime_source). This left all scanned shim C++ files omitted from collision detection, allowing --out\ to overwrite them.

This change extracts
untime_source_paths()\ to properly enumerate the scanned shim files and include them in the collision check against .json\ and .txt\ output paths.

Verification

  • Ran standard-library test suite: \python -I tests/test_gdk_runtime_calls.py\ (25/25 PASS).
  • Clean-room verification: \python -I scripts/check_no_game_data.py\ clean.
  • Zero dependencies outside the Python standard library. No game files, retail binaries, or keys.
  • AI-assisted (Claude Code).

🔄 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/702 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/gdk-runtime-source-collision` --- ### 📝 Commits (1) - [`35b0895`](https://github.com/ubiquitarianism/leonida/commit/35b0895dcc6e5f576eb29155e3f521bc069de3c3) gdk_runtime_calls: protect runtime-source directory files from being overwritten by --out ### 📊 Changes **2 files changed** (+52 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_gdk_runtime_calls.py` (+37 -0) 📝 `tools/gdk_runtime_calls.py` (+15 -7) </details> ### 📄 Description ### Summary Restores old upstream PR 8468 (OLD-8468). When \--runtime-source\ is a directory of \xgameruntime*.cpp\ (such as the default \ untime/shims\), \main()\ checked only \if os.path.isfile(a.runtime_source): inputs.append(a.runtime_source)\. This left all scanned shim C++ files omitted from collision detection, allowing \--out\ to overwrite them. This change extracts \ untime_source_paths()\ to properly enumerate the scanned shim files and include them in the collision check against \.json\ and \.txt\ output paths. ### Verification - Ran standard-library test suite: \python -I tests/test_gdk_runtime_calls.py\ (25/25 PASS). - Clean-room verification: \python -I scripts/check_no_game_data.py\ clean. - Zero dependencies outside the Python standard library. No game files, retail binaries, or keys. - AI-assisted (Claude Code). --- <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#741
No description provided.