WIP URGENT removal of all code that may reference DMCA material or creat DMCA offensive splash loader. #228

Closed
tragice wants to merge 4 commits from (deleted):main into main
First-time contributor

The splash-style preload loader is now removed from the project, and a search of the whole project finds no references to it. I couldn't run PowerShell or build the Rust here, so none of this has been run. I only checked bracket balance and that both locale files are still valid JSON.

What I removed:

scripts/preload-window.ps1: deleted. That file was the whole GTA-splash window: it loaded the game's splash image and drew the progress bar over it.
scripts/play-nvidia.ps1:
The loading of that script and every call into it are gone.
The -Splash and -SplashWindow options are gone, and so is the image-fetching code.
The preload now always uses the green window. -NoPreloadWindow is still there if you want console-only progress.
locales/en.json and locales/zh-CN.json: I removed 34 text strings each that only the splash window used, such as "Skip and start the game" and "Translating the game's shaders". I kept the five the launcher still prints in its console summary.
README.md: the two places that described the "progress window over the game's splash" now describe the green window.

The only remaining "splash" text is two lines in crates/darner-hle/src/modules/icon.rs. That code reads the game's own config file for icon handling, so it has nothing to do with the loader and I left it alone.

Tested unable to recreate DMCA offisive loader. Fixed percentage loading tracking in the preloading window.

The splash-style preload loader is now removed from the project, and a search of the whole project finds no references to it. I couldn't run PowerShell or build the Rust here, so none of this has been run. I only checked bracket balance and that both locale files are still valid JSON. What I removed: scripts/preload-window.ps1: deleted. That file was the whole GTA-splash window: it loaded the game's splash image and drew the progress bar over it. scripts/play-nvidia.ps1: The loading of that script and every call into it are gone. The -Splash and -SplashWindow options are gone, and so is the image-fetching code. The preload now always uses the green window. -NoPreloadWindow is still there if you want console-only progress. locales/en.json and locales/zh-CN.json: I removed 34 text strings each that only the splash window used, such as "Skip and start the game" and "Translating the game's shaders". I kept the five the launcher still prints in its console summary. README.md: the two places that described the "progress window over the game's splash" now describe the green window. The only remaining "splash" text is two lines in crates/darner-hle/src/modules/icon.rs. That code reads the game's own config file for icon handling, so it has nothing to do with the loader and I left it alone. Tested unable to recreate DMCA offisive loader. Fixed percentage loading tracking in the preloading window.
F1 menu has the preset option limited to the Picture menu.
This change tracks shader preloading by the bytes of the hash translated. It will give an accurate percentage of the shaders preloading now.
shader percentage tracking in preload window is fixed now. Also all copyright material and splash screen loading that was dormant has been removed.
Owner

Review of 1850bc6b (read only, not built or run). Hold: changes needed before testing.

Removing the splash loader looks complete. scripts/preload-window.ps1 is gone. Nothing in the tree still calls Start-PreloadWindow, Update-PreloadWindow or Get-SplashImage, and nothing refers to the script. -Splash and the splash image fetch are gone. The new strings preload.progress.shader_percent and play.preload.quit are in both locale files. It merges cleanly with main (f3840d73).

Must fix:

  1. The tests don't compile. translate::progress_line went from pub(crate) fn to a private fn, but preload_ui.rs test a_progress_line_with_no_shaders_yet_moves_the_window_to_step_one still calls crate::translate::progress_line(...). That function is private to translate, so cargo test stops with E0603. Keep it pub(crate).
  2. The launcher's preload now warms every pipeline. With the window, play-nvidia.ps1 runs darner preload <folder> --window, which hands off to preload_ui::run, and that starts the child with --all. Before, the launcher ran a plain darner preload <folder>, which uses the used-pipeline list when an earlier run wrote one. Players with a list would get a much longer preload, and -NoPreloadWindow would still behave the old way. Either pass the plain preload through to the child for --window, or say in the PR that this is wanted.

Should fix:
3. Commit 34f90567 (PRESETS only on the picture page of F1) has nothing to do with removing the loader. Please split it into its own PR, or at least describe it here, so it can be reviewed and tested on its own.
4. The progress change is reasonable: it reports the share of bytes and prints a line at every half percent, using fetch_max so it doesn't print twice. One gap: a file with no shader sources prints nothing. The window then waits for the next file instead of moving forward, which is minor.

Before it can come off WIP: run cargo test --workspace --locked, then do two real -Preload runs, one with the window and one with -NoPreloadWindow. Check that "Play now" starts the game, that "Quit" starts nothing, and that the bar reaches 100 %.

No testcall-ok: hold.

Review of 1850bc6b (read only, not built or run). Hold: changes needed before testing. **Removing the splash loader looks complete.** `scripts/preload-window.ps1` is gone. Nothing in the tree still calls `Start-PreloadWindow`, `Update-PreloadWindow` or `Get-SplashImage`, and nothing refers to the script. `-Splash` and the splash image fetch are gone. The new strings `preload.progress.shader_percent` and `play.preload.quit` are in both locale files. It merges cleanly with main (f3840d73). **Must fix:** 1. **The tests don't compile.** `translate::progress_line` went from `pub(crate) fn` to a private `fn`, but `preload_ui.rs` test `a_progress_line_with_no_shaders_yet_moves_the_window_to_step_one` still calls `crate::translate::progress_line(...)`. That function is private to `translate`, so `cargo test` stops with E0603. Keep it `pub(crate)`. 2. **The launcher's preload now warms every pipeline.** With the window, `play-nvidia.ps1` runs `darner preload <folder> --window`, which hands off to `preload_ui::run`, and that starts the child with `--all`. Before, the launcher ran a plain `darner preload <folder>`, which uses the used-pipeline list when an earlier run wrote one. Players with a list would get a much longer preload, and `-NoPreloadWindow` would still behave the old way. Either pass the plain preload through to the child for `--window`, or say in the PR that this is wanted. **Should fix:** 3. Commit 34f90567 (PRESETS only on the picture page of F1) has nothing to do with removing the loader. Please split it into its own PR, or at least describe it here, so it can be reviewed and tested on its own. 4. The progress change is reasonable: it reports the share of bytes and prints a line at every half percent, using `fetch_max` so it doesn't print twice. One gap: a file with no shader sources prints nothing. The window then waits for the next file instead of moving forward, which is minor. **Before it can come off WIP:** run `cargo test --workspace --locked`, then do two real `-Preload` runs, one with the window and one with `-NoPreloadWindow`. Check that "Play now" starts the game, that "Quit" starts nothing, and that the bar reaches 100 %. No testcall-ok: hold.
Contributor

Not sure what the issue was here. There wasn't any bundled assets, and any metadata was extracted from user-provided files.

If you're saying that referencing user-provided files is an issue, then the whole repo is a problem. Which it's not. It's perfectly legal.

Not sure what the issue was here. There wasn't any bundled assets, and any metadata was extracted from user-provided files. If you're saying that referencing user-provided files is an issue, then the whole repo is a problem. Which it's not. It's perfectly legal.
tragice closed this pull request 2026-12-04 07:00:00 +00:00
Author
First-time contributor

@xrobau wrote in #228 (comment):

Not sure what the issue was here. There wasn't any bundled assets, and any metadata was extracted from user-provided files.

If you're saying that referencing user-provided files is an issue, then the whole repo is a problem. Which it's not. It's perfectly legal.

I am not a lawyer and want to be especially safe. There is reference to splash screen in code, as well as ripping the asset to use on a different program (which is against their terms without a doubt) I think this is more dangerous than making a program that makes their code run their game. I don't understand the subtle nuances in law across several location that this may be attacked from. I am just trying to help the project be safe.

@xrobau wrote in https://git.gtahub.st/TrustNo1/Darner/pulls/228#issuecomment-861289: > Not sure what the issue was here. There wasn't any bundled assets, and any metadata was extracted from user-provided files. > > If you're saying that referencing user-provided files is an issue, then the whole repo is a problem. Which it's not. It's perfectly legal. I am not a lawyer and want to be especially safe. There is reference to splash screen in code, as well as ripping the asset to use on a different program (which is against their terms without a doubt) I think this is more dangerous than making a program that makes their code run their game. I don't understand the subtle nuances in law across several location that this may be attacked from. I am just trying to help the project be safe.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!228
No description provided.