Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve Resolution config entry, use it to override resolution#7

Merged
ManlyMarco merged 4 commits intoBepInEx:masterfrom
daydensteve:master
Sep 19, 2025
Merged

Improve Resolution config entry, use it to override resolution#7
ManlyMarco merged 4 commits intoBepInEx:masterfrom
daydensteve:master

Conversation

@daydensteve
Copy link
Contributor

I encountered a game where it would always load at 1080x1920 regardless of changes made via this plugin in previous sessions. Modifying the plugin felt like the easiest path forward to force it up to 4k.

These changes affect the behavior of the Resolution settings in the following ways:

  1. The "Reset" button now resets to the Resolution used at load time. I found it using the full dimensions of the current monitor unintuitive.
  2. The dummy Resolution setting in the config is no longer a dummy and, if set, will be used at load time to change the resolution.
  3. Any subsequent changes to the resolution will be mirrored to the config file but IFF the Resolution was already set in the config file

Regarding #3, I went this route instead of always using the value so I could maintain previous functionality and not change how the plugin works in every use case, thereby limiting - if not eliminating - unintended consequences of the change. If maintainers would prefer to always use it, I welcome the edits.

… as opposed to using the maximum resolution of the current monitor
…ibly set the resolution. Useful primarily for any game where the game uses hardcoded resolution settings and ignores changes made by this plugin in previous sessions.
Copy link
Member

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can you separate the Reset button fix into another PR? Also it's probably better to only store the original resolution just before applying our own custom resolution, just in case the game goes through multiple different resolutions as it loads configs and such.
  2. I think useResolutionConfig is unnecessary, simply check if the resolution setting has a value in it or if it's empty.
  3. Ideally the override could be enabled from the UI, maybe add a toggle to the custom drawer that makes the resolution be saved in the setting?

@daydensteve
Copy link
Contributor Author

daydensteve commented Sep 15, 2025

requested changes made. I agree thats much cleaner. Will submit a separate PR for the reset change after merge

Copy link
Member

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for the PR!

@ManlyMarco ManlyMarco changed the title Resolution config entry use Improve Resolution config entry, use it to override resolution Sep 19, 2025
@ManlyMarco ManlyMarco merged commit 5618c0c into BepInEx:master Sep 19, 2025
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