update direct3d hal warning to include all hardware modes

This commit is contained in:
Ramen2X 2021-03-02 01:23:00 -05:00
parent 5c41676530
commit 177f44c473

View file

@ -1057,9 +1057,9 @@ namespace Rebuilder
// Make sure to warn the user when running windowed mode and Direct3D HAL together
if (!patch_config.FullScreen)
{
if ((string)dst.GetValue("3D Device Name") == "Direct3D HAL")
if ((string)dst.GetValue("Flip Surfaces") == "YES")
{
return (MessageBox.Show("It looks like LEGO Island is configured to run in Direct3D HAL mode. Direct3D HAL is NOT compatible with windowed mode. You must set LEGO Island to run in one of its software modes in the LEGO Island configuration to use windowed mode (RGB Emulation is recommended for most computers).", "Invalid Settings Detected", MessageBoxButtons.OK, MessageBoxIcon.Warning) == DialogResult.Yes);
return (MessageBox.Show("It looks like LEGO Island is configured to run in hardware mode. Hardware mode is NOT compatible with windowed mode. You must set LEGO Island to run in one of its software modes in the LEGO Island configuration to use windowed mode (RGB Emulation is recommended for most computers).", "Invalid Settings Detected", MessageBoxButtons.OK, MessageBoxIcon.Warning) == DialogResult.Yes);
}
}
}