using System;
namespace CustomResolution;
///
/// Flags for internal testing.
///
public class DebugConfiguration
{
public bool IsDebug { get; set; } = false;
public SetWindowSizeMode SetWindowSizeMode { get; set; } = SetWindowSizeMode.InterceptSystemConfig;
public ForceSizeMode ForceSizeMode { get; set; } = ForceSizeMode.FakeWindowResize;
}
public enum SetWindowSizeMode
{
///
/// Intercept the system config width / height and scale it to the window size, and don't intercept window size sets.
/// Has got a mild risk of growing / shrinking windows if any codepath tries to get->set the window size,
/// most notably with other plugins trying to change the window size. You shouldn't mix and match those anyway tho...
/// ... and even then, I'm probably the only one who's going to read this and care about this. -jade
///
InterceptSystemConfig = 0,
///
/// Legacy mode, went through more initial testing, works well except for the game getting confused about windowed mode size.
/// Might revert or remove depending on how InterceptSystemConfig testing / fixups proceed.
///
/// Hook SetWindowPos and turn the wanted size from scaled to window size on the fly.
///
LegacyHookSetWindowPos = 1
}