Skip to content

Add game profile database for per-game optimal settings#2000

Open
gigachadmma69 wants to merge 1 commit intobrunodev85:mainfrom
gigachadmma69:feature/game-profiles
Open

Add game profile database for per-game optimal settings#2000
gigachadmma69 wants to merge 1 commit intobrunodev85:mainfrom
gigachadmma69:feature/game-profiles

Conversation

@gigachadmma69
Copy link
Copy Markdown

Summary

Adds a built-in game profile system that lets users apply known-good settings for popular games with one tap, eliminating manual per-shortcut configuration.

  • "Load Game Profile" button in the shortcut settings dialog opens a picker with 20 curated game profiles
  • Selecting a profile auto-populates: screen size, graphics driver, DX wrapper, Box64 preset, env vars, exec args, and force fullscreen
  • Follows existing codebase patterns (Box86_64Preset for data model, InputControlsManager for asset-loaded profiles)

Included game profiles (20 games):

Elden Ring, The Witcher 3, Skyrim SE, Fallout 4, GTA V, Dark Souls III, Sekiro, Hollow Knight, Stardew Valley, Cuphead, RE4, NFS Most Wanted, CS:GO, RDR2, Cyberpunk 2077, DMC5, MGSV, Undertale, Terraria, Celeste

New files:

  • assets/game_profiles.json — Profile database (easily extensible)
  • container/GameProfile.java — Data class with loadAll(), findByExe(), and applyToShortcut() methods

Architecture:

The profile database is a simple JSON asset file, making it easy for the community to contribute new profiles via PRs. The GameProfile.findByExe() method also enables future auto-detection of games by executable name.

Test plan

  • Open shortcut settings for any game → verify "Load Game Profile" button appears
  • Tap "Load Game Profile" → verify picker dialog shows all 20 games
  • Select a profile → verify all settings fields update (screen size, graphics driver, DX wrapper, Box64 preset, env vars, force fullscreen)
  • Confirm settings → verify profile settings are saved to the shortcut
  • Launch the game → verify applied settings take effect at runtime

Add a built-in game profile system that lets users apply known-good
settings for popular games with one tap, instead of manually configuring
each shortcut.

New files:
- game_profiles.json: Curated database of 20 popular games with optimal
  settings (graphics driver, DX wrapper, box64 preset, env vars, etc.)
- GameProfile.java: Data class with loadAll(), findByExe(), and
  applyToShortcut() methods. Follows existing Box86_64Preset pattern.

Modified files:
- ShortcutSettingsDialog: Added "Load Game Profile" button that opens a
  picker dialog. Selecting a profile auto-populates all settings fields.
- shortcut_settings_dialog.xml: Added profile button to layout.
- strings.xml: Added localization strings.

The profile database includes games like Elden Ring, Witcher 3, Skyrim,
GTA V, Cyberpunk 2077, and more, with appropriate driver and preset
configurations for each.
@yusifpeugeot9-droid
Copy link
Copy Markdown

HBI

@islembehnas
Copy link
Copy Markdown

why Battlefield 3 bf3.exe not lunch on all version of winlator with trying lot of configs but the same result bf3.exe not lunch and the oroblm uknown

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.

3 participants