Skip to content

Locate the Lossless DLL with WinNative's file picker - #706

Merged
maxjivi05 merged 1 commit into
WinNative-Emu:mainfrom
maxjivi05:fix/lossless-file-picker
Aug 27, 2026
Merged

Locate the Lossless DLL with WinNative's file picker#706
maxjivi05 merged 1 commit into
WinNative-Emu:mainfrom
maxjivi05:fix/lossless-file-picker

Conversation

@maxjivi05

Copy link
Copy Markdown
Contributor

The Locate button on the frame generation card opened Android's document picker, which shows storage through SAF. Lossless.dll lives inside a container's drive_c, and SAF has no view of the imagefs, so reaching it meant copying the DLL out to Downloads first. WinNative already ships a browser that mounts those drives.

Open DirectoryPickerDialog.showFile instead, filtered to .dll and given the same C:/Z:/D:/Internal roots the container saves import uses, so the wineprefix is reachable directly. The picker hands back a path rather than a content URI, so add a File overload to LosslessAutoImport.importFrom that goes straight to LosslessScaling.installFrom(Context, File) and skips staging a copy in the cache dir. The reported source name is the containing folder, matching what the automatic Steam import already reports.

findActivity moves from private to internal so the Compose card can resolve the host activity the dialog needs.

The Locate button on the frame generation card opened Android's document
picker, which shows storage through SAF. Lossless.dll lives inside a
container's drive_c, and SAF has no view of the imagefs, so reaching it meant
copying the DLL out to Downloads first. WinNative already ships a browser that
mounts those drives.
Open DirectoryPickerDialog.showFile instead, filtered to .dll and given the
same C:/Z:/D:/Internal roots the container saves import uses, so the wineprefix
is reachable directly. The picker hands back a path rather than a content URI,
so add a File overload to LosslessAutoImport.importFrom that goes straight to
LosslessScaling.installFrom(Context, File) and skips staging a copy in the
cache dir. The reported source name is the containing folder, matching what the
automatic Steam import already reports.
findActivity moves from private to internal so the Compose card can resolve the
host activity the dialog needs.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@maxjivi05
maxjivi05 merged commit 2bcd0a3 into WinNative-Emu:mainAug 27, 2026
@maxjivi05
maxjivi05 deleted the fix/lossless-file-picker branch August 27, 2026 19:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@maxjivi05