Repository navigation
Folder scan reads bare title IDs, rows refuse files that do not fit - #246
Merged
Merged
Conversation
Choose game folder now recognises names like 01007EF00011E000_v0_420d1c5034ab.nsp (bare title ID token, _vN version), in the Mac launcher and the Qt front end. The update, DLC and base rows name a file of the wrong kind or another game instead of taking it, the update row says which of several updates it took, and the DLC picker says several files can be selected. Fixes #237
v0lumehi
force-pushed
the
v0lumehi/folder-scan-names
branch
from
October 30, 2026 10:26
7925bc8 to
823ca8b
Compare
This was referenced Oct 30, 2026
This was referenced Oct 30, 2026
LNPANDY
added a commit
that referenced
this pull request
Oct 30, 2026
…n added Rebased onto current main and resolved the generated Qt table by regenerating it (gen_localization.py), so this keeps main's fixes rather than reverting them: - the ISO language code Windows is asked for (0x59), from #256 — without it a German Windows would still fall through to English on the Qt side - the 18 keys #246 added to the Swift table without regenerating the Qt one Ten strings had no German, because main added them after this branch was cut: `saves.macLibrary`, `saves.macStandard`, `saves.macPending`, `saves.noDevices`, `saves.notConnected`, `saves.timeout`, `saves.device`, `fail.zbic.what`, `fail.zbic.next` and `fail.zbic.button`. Two existing entries no longer matched the current English (`saves.reading`, `saves.notInstalled`): the first was missing its `%@`, the second still described an older sentence. Tests: swift test 500 tests, 0 failures; python -m unittest discover -s frontend-qt/tests 188 tests OK.
0xBEEBAD
pushed a commit
to 0xBEEBAD/NX2Apple
that referenced
this pull request
Oct 30, 2026
…he language table Two bugs the PR review of LNPANDY#222 turned up in the current main: - `nspb_qt/i18n.py` asked `GetLocaleInfoW` for `0x02`, which is LOCALE_SLANGUAGE, the *localized display name*. On a Chinese Windows that answer is "中文(简体,中国)", the prefix test for "zh" never matched, and the early return handed the user an English interface — the very report the comment above the call says was fixed. The ISO 639 code is `0x59`, and the LANGID is masked with 0x3FF (the primary language) rather than 0xFF. - `nspb_qt/localization.py` was 18 keys behind `Localization.swift`: LNPANDY#246 added them to the Swift table without running `gen_localization.py`. They were never visible because the Windows bundle regenerates the table before packaging, but a source run of the Qt app showed the raw keys. Regenerated here. The Qt test job now regenerates the table and fails on any difference, so a string added to the Swift table cannot leave the Qt one stale again. Tests: `python -m unittest discover -s frontend-qt/tests` 179 tests OK. New: `test_windows_is_asked_for_the_iso_language_code` asserts the constant passed to the API (the existing test mocked only the answer, which is how 0x02 survived), and `test_a_windows_display_name_still_selects_the_language` covers zh/sv/de/en answers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Fixes #237. Thanks @dqylyln for the report and the screenshots.
Choose game folder only found a title ID in square brackets (
[0100…]) and a version as[vN], so a folder named like the eShop dumps (01007EF00011E000_v0_420d1c5034ab.nsp) found nothing. Each row also took any file, so an update could land in the DLC row without a word.titleIDaccepts a bare 16-digit ID that starts with01as a token (start of the name or after_, space,-,.,(,[), brackets first.updateVersionaccepts_vNandvNtokens, brackets first. The build staging instartBuilduses the sametitleID, so the folder's own update and DLC come along for these names too. The Qt front end uses the same rules (newnspb_qt/inputs.py, and its folder scan now sorts by title ID instead of only by [upd] and [dlc] markers, which stay as the fallback for names without an ID).… is not DLC (title ID 01007EF00011E800). DLC does not end in 000 or 800. Those are the base game and its update.). Wrong kinds are base, update and DLC mixed up, and a file of another game than the selected base. In a multi-select for DLC the files that fit are taken and the first that does not is named. I chose rejecting over moving the file to the right row, because it is predictable: the row the user clicked is the row that changes, and the message says what to do. Files whose names carry no title ID are still accepted, the build script reads the ID from the package.v1114112, the newest of 2. An update contains the earlier ones.The DLC row says several files can be selected when empty, shows the count after the pick, and the DLC open panel says to hold ⌘ and click. English, Chinese and Swedish (no German table on main).Checked
cd frontend && swift test(463 tests, 0 failures, new cases for the five names from the issue, bracket names, token edges, row checks, picked and dropped files, the update note),python -m unittest discover -s frontend-qt/tests(newtest_inputs.py),python3 scripts/patches.py check.Screenshots
None.
Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly