mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #702] gdk_runtime_calls: protect runtime-source directory files from collision (OLD-8468) #741
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#741
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
35b0895gdk_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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.