feat(settings): OptiScaler's licences in View licences #392
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!392
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/LongshotLauncher:feat/optiscaler-licences"
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?
Longshot now ships OptiScaler with the game (MagicBeanDev/Longshot#2985), turned on from the game's own Graphics
menu. Players should be able to read its licences where the launcher already shows its own, so this adds them to
Settings › Launcher › View licences.
What changed
starts with a plain note (what it is, that it is a separate project not made by Longshot, where its source is, where the game's copy is), then the
licence text: the GNU GPL 3.0 (the launcher's own
LICENSE, which OptiScaler'sLICENSEis byte for byte) andfakenvapi's MIT licence (
assets/licenses/fakenvapi-MIT.txt, pinned inassets/licenses/SOURCES).bundled_license, so a test can read them.The launcher has no other OptiScaler setting: Longshot's builder bundles and places it (by pin, SHA-256 checked), and the
game's own
optiscaler=1setting turns it on. The legal copies of these licences go with OptiScaler's files into the gamefolder's
data/licenses/optiscaler/(the builder PR), and each entry here says so; this is where players can read themfrom the launcher.
Longshot does not ship dlssg-to-fsr3: the user turned OptiScaler's frame generation off (a black picture on Longshot,
and Longshot has its own FSR 3.1 frame generation), so #2985 leaves it out and so does this list.
Design
The user's decisions: bundle OptiScaler with Longshot's builder, turn it on in the game's settings (not the launcher), and
show its licence notice in the launcher's View licences.
Tests
every_listed_licence_has_its_document_and_optiscalers_are_the_shipped_texts: every entry of the list inui/settings.slinthas its document and none past it; OptiScaler's is the GPL-3.0 text and fakenvapi's the pinned MITtext (SHA-256).
python -I tests/test_launcher_core.py, locked Clippy, fmt. On this PC 11 tests in folders/registry/Steamlibrary/portable home/storage fail on
origin/maintoo (Windows path spellings,\against/); none touches this.lists both new entries; each shows its note and its full licence text (screenshots in the first comment, taken
before dlssg-to-fsr3 was dropped: the first entry is now titled "OptiScaler · GPL-3.0" and its note names OptiScaler
alone).
Merge after MagicBeanDev/Longshot#2985, so the list never names something Longshot does not ship
yet. #344 also appends to
assets/licenses/SOURCES: whichever lands second takes both blocks.🤖 Generated with Claude Code
Settings › Launcher › View licences on this branch (Windows 11, debug build, a throwaway launcher home):
c79d92fbd5a340daf825WIP: feat(settings): OptiScaler's licences in View licencesto feat(settings): OptiScaler's licences in View licencesRecommendation: Approve. The licence viewer has been exercised on Windows, but the entries should land after Longshot#2985 as the author requested. The displayed game-folder path also uses Windows separators on Linux. Nothing blocking is left. Recommend approval; not approved on the forge.
Adds offline OptiScaler and fakenvapi licence documents to the existing launcher viewer, with translated accessible labels. It reuses the existing viewer and adds little code.
Should fix (1): not blocking, but worth doing before merging.
src/preferences.rs:228: Both new notices show a Windows-style path on Linux. (more on the line) Do: Display a platform-appropriate path, or use data/licenses/optiscaler in both notices.@fixcan do L1.Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes. The author reports opening both entries and their full texts in a Windows 11 debug build; this is not a performance change.
Other systems: The documents are embedded in the launcher and use the existing Slint viewer on Windows and Linux. The game builder and its licence copies are supplied by Longshot#2985, whose merge status could not be checked offline.
Switches: None.
Reviewed:
a340daf825againstad367dc625: Read AGENTS.md, CONTRIBUTING.md, the full diff, commit, src/preferences.rs, ui/settings.slint, licence sources and the new MIT text. Read the licence viewer and settings callback declarations; skimmed the changed translation entries. No review checklist or pull request template was present. Screenshot attachments were not available offline.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run, as requested. The author reports a Windows manual check and local tests; Forgejo checks are still running.
Overlaps and merge order: Merge Longshot#2985 first. LongshotLauncher#344 also appends to assets/licenses/SOURCES; retain both blocks when merging the second change.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.
@ -210,0 +225,4 @@"Longshot ships OptiScaler (https://github.com/optiscaler/OptiScaler) and dlssg-to-fsr3 ","(https://github.com/Nukem9/dlssg-to-fsr3) as their makers publish them. They are separate projects, not made ","by Longshot, under the GNU General Public License, version 3. Their source is at those addresses. A copy of this ","licence is with the game, in its data\\licenses\\optiscaler folder.\n\n",L1 (should fix): Both new notices show a Windows-style path on Linux.
When: A Linux player following either notice sees data\licenses\optiscaler, which is not the path using Linux directory separators.
Do: Display a platform-appropriate path, or use data/licenses/optiscaler in both notices.
@fix
Recommendation: Approve. The launcher displays the two licence notices, and the path correction preserves that feature. Merge after Longshot#2985 so the notices do not claim the game ships OptiScaler before it does. Nothing blocking is left. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
ff72ea1838. I edited its description to match the change.Changed
Nothing was built or run: the checks run again on the new head.
Adds OptiScaler and fakenvapi licence documents to View licences, with source notices and a translated accessible label. The documents reuse the existing licence viewer and add a small amount of bundled text.
Checks: they run again on this head; a failure shows on the pull request.
More: does it help, other systems, switches, what was read
Does it help: Yes: the author reports a Windows 11 manual check showing both entries and their full texts. This is not a performance change.
Other systems: The notices use the same viewer and callback on Windows and Linux; they do not change the builder or game. The game-side licence copies depend on Longshot#2985.
Switches: None.
Reviewed:
ff72ea1838againstad367dc625: Read AGENTS.md, CONTRIBUTING.md, src/preferences.rs, the licence assets and the relevant settings and callback code; skimmed the translation changes and remaining settings UI. No review checklist or pull request template was present.; nothing run (a code review).Checked and fine:
Testing: The author reports a Windows manual check, launcher core tests, locked Clippy and formatting; 11 launcher core tests reportedly also fail on main. CI has not run on this head. No commands from the project were run during review.
Overlaps and merge order: Merge Longshot#2985 first. LongshotLauncher#344 also appends to assets/licenses/SOURCES; retain both blocks when merging the second pull request.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.
On top of BeanBot's
/fix (L1, kept): the list drops dlssg-to-fsr3. The user turned OptiScaler's frame generation off (a black picture on Longshot, and Longshot has its own FSR 3.1 frame generation), so MagicBeanDev/Longshot#2985 no longer ships dlssg_to_fsr3_amd_is_better.dll or its licence (ec2b30550). The first entry is now OptiScaler · GPL-3.0, its note naming OptiScaler alone; the test checks dlssg-to-fsr3 is not named. fakenvapi's MIT text and the GPL-3.0 are byte for byte the game's copies in #2985 (SHA-256 d88550cb…, 3972dc97…). fmt, locked Clippy and the licence test pass on2f8d8cc. The screenshots in the first comment show the earlier title.@review
Recommendation: Request changes. The licence list and documents are consistent with the reported contents of Longshot’s pending OptiScaler change. Merge Longshot#2985 first so the launcher does not describe software the game has yet to ship. (It stands on L2: The check
CI / Release packages and stable upgrades (pull_request)fails on this head and passes on the base branch: Failing after 31m54s.)Adds offline OptiScaler and fakenvapi licence notices to the launcher's existing licence viewer. The change reuses the existing viewer and adds a small indexed document mapping and test.
Blocking (1): must change before merging.
CI / Release packages and stable upgrades (pull_request)fails on this head and passes on the base branch: Failing after 31m54s.@fixcan do L2.Since the last review (on
ff72ea1838)New: L2 (The check
CI / Release packages and stable upgrades (pull_request)fails on this head an…)More: does it help, other systems, switches, what was read
Does it help: Yes: the author reports viewing both licence documents in a Windows 11 debug build. The screenshots show the earlier title; the final title and notice are supported by the code and the author's later report.
Other systems: The viewer uses the same indexed callback on Windows and Linux; the change does not affect the builder or game. The game-side licence copies depend on Longshot#2985.
Switches: None.
Reviewed:
2f8d8cca33againstad367dc625: Read AGENTS.md, CONTRIBUTING.md, the full diff, src/preferences.rs, assets/licenses/SOURCES and fakenvapi-MIT.txt; inspected the licence viewer wiring and the changed portion of ui/settings.slint. Skimmed translation changes. No review checklist or pull request template was present.; nothing run (a code review).Checked and fine:
Testing: The author reports the licence test, locked Clippy and formatting passed, plus a Windows UI check. The release packages and stable upgrades CI check fails on this head. No commands that execute project code were run during this review.
Overlaps and merge order: Merge Longshot#2985 first. Launcher#344 also appends to assets/licenses/SOURCES; the second merge must retain both entries.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@fix
Recommendation: Approve. The licence entries and their documents are wired into the existing viewer, and the fixture records match the version-record format. Merge after Longshot #2985 so the launcher does not describe a component the game has not yet shipped. Nothing blocking is left. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
16cb40afdf.Changed
Nothing was built or run: the checks run again on the new head.
Players can read the OptiScaler and fakenvapi licences from the existing launcher settings. The change reuses the existing viewer and adds a small amount of bundled text and test code.
Checks: they run again on this head (
CI / Release packages and stable upgrades (pull_request)failed on the last one); a failure shows on the pull request.Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes. The author reports viewing both full documents in a Windows 11 debug build; the screenshots show the earlier first-entry title.
Other systems: The viewer is shared across platforms; the notices use portable paths. The fixture change affects the Linux window smoke test, not the shipped launcher.
Switches: None.
Reviewed:
16cb40afdfagainstad367dc625: Read the repository rules, the full pull request diff, the smoke test and the version-record reader. Reviewed the changed licence and UI code; skimmed translation changes and surrounding callers. Some long file output was truncated.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports the licence test, formatting and locked Clippy passed on the preceding head; CI has not yet run on this head.
Overlaps and merge order: Merge Longshot #2985 first. Launcher #344 also appends to assets/licenses/SOURCES; retain both blocks when merging the second pull request.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.
@rebase
I rebased this pull request onto
main(c1bc2e0059): the new head is5f4b1075a7.Conflicts resolved
Nothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
16cb40afdf5f4b1075a7Recommendation: Approve. The licence entries have a reported Windows UI check, but Longshot must ship OptiScaler before the launcher describes it as shipped. Nothing blocking is left. Recommend approval; not approved on the forge.
Adds offline OptiScaler and fakenvapi licence documents to the launcher's existing licence view, with translated accessible labels. The shared document lookup keeps the list readable at a small maintenance cost.
Since the last review (on
16cb40afdf)Still open: L2 (The check
CI / Release packages and stable upgrades (pull_request)fails on this head an…)Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Not a perf change. The author reports that both documents displayed in a Windows 11 debug build; the screenshots show the earlier OptiScaler title.
Other systems: The licence view is shared across Windows and Linux and does not change game builds or settings. The fixture update affects the Linux window smoke test. Longshot #2985 supplies the game-side files and licences.
Switches: None.
Reviewed:
5f4b1075a7againstc1bc2e0059: Read AGENTS.md, CONTRIBUTING.md, the full diff, commit list, licence sources and licence text; inspected the changed Rust, Slint and window-test files and skimmed translation changes. No review checklist or pull request template was present.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run project code were executed. The author reports the licence test, formatting and locked Clippy passed; CI is still running.
Overlaps and merge order: Longshot #2985 must merge first. Launcher #344 also appends to assets/licenses/SOURCES; preserve both entries if it merges first.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
About L2 (the
Release packages and stable upgradescheck): this PR doesn't cause it. Main fails the same check.ad367dc6failed there (run 1737) with the same error as this PR did (run 1746):RuntimeError: The existing window did not select first. Of main's last 12 commits, 11 failed the check andc1bc2e00hasn't run it yet.version.jsonfix (16cb40af), the job got past that error. The Windows updater under Wine then tried to startxvfb-run, which isn't there, and the job ran to its 1-hour limit (run 1761).xvfb-runfor the Linux file only. Its description says the full packaging job hasn't been run on Ubuntu yet. Itsversion.jsonlines conflict with the ones BeanBot added here, so whichever merges second needs a small fix.I removed the
version.jsontest fix from this PR (e5afdcb), as llun decided. #370 changes the same lines, and the two conflicted. This PR now changes no test files, only the licences.The
Release packages and stable upgradescheck will still fail here until main is fixed. The comment above has the runs.