Reload Song From Disk - develop

Reload Song From Disk using F5 or CTRL+R while in pause menu
This commit is contained in:
Stefan authored and GitHub committed 2020-01-07 09:27:46 +01:00
1 parent fda7d4acb3
commit b248c4b2bd
1 file changed
+21 -1
+21 -1
View File
@@ -287,6 +287,25 @@ namespace Vocaluxe.Screens
if (CConfig.Config.Debug.SaveModifiedSongs == EOffOn.TR_CONFIG_ON)
song.Save();
break;
case Keys.R:
if (keyEvent.Mod == EModifier.Ctrl)
{
if (_Pause)
{
_SetPause(false);
_RestartRound();
}
}
break;
case Keys.F5:
if (_Pause)
{
_SetPause(false);
_RestartRound();
}
break;
}
}
@@ -1054,6 +1073,7 @@ namespace Vocaluxe.Screens
}
CSong song = CGame.GetSong();
song.ReloadSong();
if (song == null)
{
@@ -1828,4 +1848,4 @@ namespace Vocaluxe.Screens
}
}
}
}
}