Skip to content

Comments

Added ability to configure settings via environment variables.#395

Merged
elishacloud merged 1 commit intoelishacloud:masterfrom
RibShark:master
Jul 2, 2025
Merged

Added ability to configure settings via environment variables.#395
elishacloud merged 1 commit intoelishacloud:masterfrom
RibShark:master

Conversation

@RibShark
Copy link
Contributor

@RibShark RibShark commented Jul 1, 2025

This enables configuring dxwrapper via environment variables. The primary use-case for this is to be able to programmatically configure dxwrapper without files within other game fixes (provided they initialize before dxwrapper does), as discussed in #367.

The environment variables named identically to the keys in the INI files, but with a "DXWRAPPER_" prefix, and are case insensitive. They apply on top of the default settings, but are overwritten by any settings present in any INI file.

@elishacloud elishacloud merged commit 934cb6a into elishacloud:master Jul 2, 2025
2 checks passed
@elishacloud
Copy link
Owner

Nice solution. I was thinking about making a function you could call to configure the settings. But that would have required a lot more changes.

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