Repository navigation
Conversation
… data (NX_FALLBACK_ICON) A NUP or a dump folder has no control data, so the Mac app is packed with no icon and shows a blank one. A front end may now name a 256x256 JPEG in NX_FALLBACK_ICON. The Mac app takes it only when the game has no icon of its own. The iOS app and the shared shell never use it. Test: test_nsp_nup.py (the variable names a file that exists, a missing file or an empty value gives none). Front-ends: new: NX_FALLBACK_ICON names a stand-in icon for a Mac app whose game has no control data
1 of 2 tasks
seedds
added a commit
that referenced
this pull request
Nov 11, 2026
…ICON, used only when --icon / ICON is not given and the game has no icon of its own (a dump, a NUP without one), so a game that carries an icon keeps it and a front end can pass a stand-in without knowing what the game holds, where --icon always replaces the game's. It goes to the Mac app and the IPA alike, down the path --icon takes (pack_app.py --icon, DM_ICON), its path is checked before anything is extracted, the build says when it is used, and the game event's icon reports it. The choice is one function (app_icon), tested for its order: --icon, the packed version's icon, the base game's, the fallback. No app was packed with it (PR #2099) Front-ends: new: --fallback-icon IMAGE (FALLBACK_ICON) gives an app an icon only when the game has none of its own; the game event's icon reports it Co-authored-by: v0lumehi <34629096+v0lumehi@users.noreply.github.com>
Owner
|
Thanks @v0lumehi. The need is right:
For NX2Apple: pass the stand-in with |
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
A NUP or a dump folder has no control data, so the NSP script packs its Mac app with no icon and the app shows a blank one. A front end can know a better icon than nothing.
NX_FALLBACK_ICONnow names a 256x256 JPEG. The Mac app takes it only when the game has no icon of its own. The iOS app and the shared shell never use it. Without the variable nothing changes.Seen in NX2Apple: LNPANDY/NX2Apple#784.
Checked
test_nsp_nup.pyhas a new test for the variable (a file that exists, a missing file, an empty value) and it passes. Three older tests in that file stop at the free-space check on my Mac (under 4 GB free) and fail the same way without this change.lint_python.pyreports the same 3 findings indm/gfx/tools/dmsh_build.pywith and without this change, none new.Front ends
Front-ends: new: NX_FALLBACK_ICON names a stand-in icon for a Mac app whose game has no control data
Docs
docs/reference/<subsystem>.mdentry, andpython3 dm/tools/docs_symptoms.pywas run (not a finding)