Skip to content

Commit

Permalink
Set display.windowmode cvar to 0 in pre-init (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Jan 10, 2024
1 parent cf334d6 commit d1e8c7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenDreamClient/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public sealed class EntryPoint : GameClient {

public override void PreInit() {
var config = IoCManager.Resolve<IConfigurationManager>();

// We share settings with other RT games, such as SS14.
// SS14 supports fullscreen, but it breaks us horribly. This disables fullscreen if it's already set.
config.SetCVar(CVars.DisplayWindowMode, 0);

if (config.GetCVar(OpenDreamCVars.SpoofIEUserAgent)) {
config.OverrideDefault(WCVars.WebUserAgentOverride, UserAgent);
}
Expand Down

0 comments on commit d1e8c7c

Please sign in to comment.