mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #876] [MERGED] OLD-7279: script_qtable: sort _BinFolderSource hex offsets numerically, skip .bin subdirs, and sort type_query histograms numerically #914
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#914
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/876
Author: @narekshaghoyandev
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq-script-qtable-bin-folder-order📝 Commits (1)
1ebe352script_qtable: sort _BinFolderSource hex offsets numerically, skip .bin subdirs, and sort type_query histograms numerically📊 Changes
2 files changed (+68 additions, -9 deletions)
View changed files
📝
tests/test_script_qtable.py(+45 -0)📝
tools/script_qtable.py(+23 -9)📄 Description
Reopening my original upstream PR #7279 (previously verified on Windows 11 Py3.12/3.15 and Linux by
@AsgerCode,@memorypressure, and@airp1ane), cleanly rebased ontomain:_BinFolderSourcehex offsets numerically & skip.binsubdirectories: Avoids lexicographic reversal of mixed-width/mixed-case hex.binnames when joining split 64 KiB streams, and skips subdirectories whose names end with.bininstead of crashing on open (IsADirectoryError/PermissionError).type_queryhistograms numerically: Orders numeric histogram keys (size,count, etc.) numerically instead of lexicographically ("112"before"32").Verification
python3 -I tests/test_script_qtable.py -v: 10/10 pass (both new tests fail/error againstmain).python3 -I scripts/check_no_game_data.py tools/script_qtable.py tests/test_script_qtable.py: clean.python3 -m compileall -q tools/script_qtable.py tests/test_script_qtable.py: clean.Claimed in the coordination issue as: OLD-7279 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135100661)
AI-assisted: yes (Gemini)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.