Reload Song From Disk - develop
Reload Song From Disk using F5 or CTRL+R while in pause menu
This commit is contained in:
1 parent
fda7d4acb3
commit
b248c4b2bd
1 file changed
+21
-1
@@ -287,6 +287,25 @@ namespace Vocaluxe.Screens
|
|||||||
if (CConfig.Config.Debug.SaveModifiedSongs == EOffOn.TR_CONFIG_ON)
|
if (CConfig.Config.Debug.SaveModifiedSongs == EOffOn.TR_CONFIG_ON)
|
||||||
song.Save();
|
song.Save();
|
||||||
break;
|
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();
|
CSong song = CGame.GetSong();
|
||||||
|
song.ReloadSong();
|
||||||
|
|
||||||
if (song == null)
|
if (song == null)
|
||||||
{
|
{
|
||||||
@@ -1828,4 +1848,4 @@ namespace Vocaluxe.Screens
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user