Chromeilion / dungeon-downloader

Easily download, update, and verify all your dungeon game files.
MIT License
6 stars 0 forks source link

Running as a wrapper #4

Closed Chromeilion closed 7 months ago

Chromeilion commented 1 year ago

The idea is to be able to use Dungeon Downloader as a wrapper around the regular launcher. Before the launcher is run, the script checks and applies any new updates and registry changes automatically. That way, when the launcher runs, its already up to date and will work without the user having to do anything. Once the user sets this up, it would essentially eliminate all overhead.

Possible issues with this approach:

Chromeilion commented 1 year ago

Looking more into this, it's currently possible to run Dungeon Downloader as a pre-launch script in Lutris with a simple shell script. Something like the following:

#!/bin/bash
konsole -e path/to/dungeondownloader

This does just about everything that a wrapper could do minus the automatic registry edits. Because this solution doesn't require any additional code apart from some extra documentation and perhaps example shell scripts for each major DE, I think this approach should be taken. By avoiding an actual wrapper we also additionally avoid any anticheat issues.

EDIT: Lutris actually sets all Wine env variables before the pre-launch script is run, meaning that we could execute Dungeon Downloader within the correct Wine prefix with something like:

#!/bin/bash
konsole -e $WINE path/to/dungeondownloader.exe

This means that we could set registry variables automatically once #3 is complete. With this there's no need for any wrapper.

Chromeilion commented 7 months ago

Since there are much better workarounds for getting the game working now, I'm closing this issue as it's no longer required.