Skip to content

Add container config export/import#2002

Open
gigachadmma69 wants to merge 1 commit intobrunodev85:mainfrom
gigachadmma69:feature/container-config-export
Open

Add container config export/import#2002
gigachadmma69 wants to merge 1 commit intobrunodev85:mainfrom
gigachadmma69:feature/container-config-export

Conversation

@gigachadmma69
Copy link

Summary

Allows users to share and reuse container configurations by exporting/importing the settings JSON as a .wcc (Winlator Container Config) file.

Export

  • New "Export Config" option in the container popup menu (between Duplicate and Remove)
  • Saves to Downloads/Winlator/<container-name>.wcc
  • Strips device-specific fields (id, cpuList, cpuListWoW64) that would be invalid on another device
  • File is ~1KB and contains all tuning settings (graphics driver, DX wrapper, env vars, box86/64 preset, win components, etc.)

Import

  • New import button in the containers toolbar (action bar)
  • Opens the system file picker to select a .wcc file
  • Creates a new container with the imported settings via the existing createContainerAsync(JSONObject) pipeline
  • The pipeline automatically assigns a new ID, creates the directory, extracts the Wine container pattern, and applies all settings

Architecture

  • Export reuses the existing .container JSON format — just reads, strips the ID, and writes
  • Import reuses the existing createContainerAsync(JSONObject) — zero new container creation logic needed
  • Follows the same file picker pattern used by InputControlsFragment for profile import

Test plan

  • Open container popup menu → "Export Config" appears
  • Export a container → .wcc file appears in Downloads/Winlator/
  • Open .wcc file in a text editor → valid JSON with all container settings, no id field
  • Tap import button → file picker opens
  • Select the exported .wcc file → new container appears with matching settings
  • Verify imported container's settings match the exported container

Allow users to share and reuse container configurations without
manually recreating settings. Exports the container's JSON config
(settings only, not the Wine prefix) as a .wcc file.

Export:
- New "Export Config" option in container popup menu
- Saves to Downloads/Winlator/<name>.wcc
- Strips device-specific fields (id, cpuList, cpuListWoW64)

Import:
- New import button in containers toolbar
- Opens system file picker for .wcc files
- Creates a new container with imported settings via existing
  createContainerAsync() pipeline (assigns new ID, extracts
  Wine pattern, applies settings)
@Jeney6
Copy link

Jeney6 commented Mar 3, 2026

Please give me your email id

@Jeney6
Copy link

Jeney6 commented Mar 10, 2026

Really the emulator very flaut when I download batman game not perfectly work

@Jeney6
Copy link

Jeney6 commented Mar 10, 2026

Please improve make easy app configuration is very hard

Sign up for free to 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.

2 participants