If changed settings require a restart, offer the user to do it now.

Add a dialog when closing the settings screen asking the user if they would like to restart the game now in order to apply any settings that are only applied after restarting the game. The game is reloaded in-process by spinning up a new AppDomain in order to reset state.
This commit is contained in:
RoosterDragon
2014-06-10 16:17:27 +01:00
parent 6d2f180cd4
commit 52b09bdfe8
4 changed files with 82 additions and 19 deletions

View File

@@ -170,9 +170,7 @@ namespace OpenRA.Renderer.Sdl2
// Special case workaround for windows users
if (e.key.keysym.sym == SDL.SDL_Keycode.SDLK_F4 && mods.HasModifier(Modifiers.Alt) &&
Platform.CurrentPlatform == PlatformType.Windows)
{
Game.Exit();
}
else
inputHandler.OnKeyInput(keyEvent);