container default - #713
Conversation
New games already use SetupWizardActivity.getPreferredGameContainer(), backed by default_x86/arm64_container_id prefs — but those were only ever written by the setup wizard. Add a 'Set as default' item to each container card's three-dot menu that writes the pref directly (arch from the wine version). Only the pref is touched, so existing games/shortcuts are unaffected.
Load default_x86/arm64_container_id into ContainersScreenState and render a 'Default' pill under the name of whichever container card is the current default. Refresh after 'Set as default' so the badge moves immediately.
2a5c1ef to
6a4c8a2
Compare
|
Nice feature, and the translations are complete across all 23 locales — thanks for that. I built it and tried it on a device. One real problem: "Set as default" doesn't do anything for ARM64EC containers. Two containers show the "Default" badge at the same time. On a fresh install the wizard sets both prefs, and Smaller things:
Could you post a screenshot showing what happens after setting an ARM64EC container as default and then launching a new game — specifically which container it actually ends up using? That's the part I'd like confirmed before this merges. |
…efault # Conflicts: # app/src/main/res/values-b+es+419/strings.xml # app/src/main/res/values-da/strings.xml # app/src/main/res/values-de/strings.xml # app/src/main/res/values-es/strings.xml # app/src/main/res/values-fi/strings.xml # app/src/main/res/values-fr/strings.xml # app/src/main/res/values-hi/strings.xml # app/src/main/res/values-it/strings.xml # app/src/main/res/values-ja/strings.xml # app/src/main/res/values-ko/strings.xml # app/src/main/res/values-no/strings.xml # app/src/main/res/values-pl/strings.xml # app/src/main/res/values-pt-rBR/strings.xml # app/src/main/res/values-pt/strings.xml # app/src/main/res/values-ro/strings.xml # app/src/main/res/values-ru/strings.xml # app/src/main/res/values-sv/strings.xml # app/src/main/res/values-th/strings.xml # app/src/main/res/values-tr/strings.xml # app/src/main/res/values-uk/strings.xml # app/src/main/res/values-zh-rTW/strings.xml
|
I believe the default container for new games simply needs to be the most universal and commonly used setting that the user picks for their specific device. Therefore, I only provide a single default container option, rather than strictly differentiating between ARM64 and x86. If future feature changes require improvements, we can always revisit this design and add per-architecture logic at that time. |
feat(containers): show Default badge on the default container card
feat(containers): add 'Set as default' to container overflow menu
i18n(containers): translate container-default strings