Lua Scripts Don't Disable If You Record A New Movie Nor When You Reset The Game. However, It Does When You Load A Different Rom.

This commit is contained in:
Rolanmen1 2012-04-02 19:50:26 +00:00
parent 31d65725bd
commit 2b9483f68f
1 changed files with 6 additions and 3 deletions

View File

@ -1229,6 +1229,12 @@ namespace BizHawk.MultiClient
Text = DisplayNameForSystem(game.System) + " - " + game.Name;
ResetRewindBuffer();
if (Global.Config.RecentRoms.GetRecentFileByPosition(0) != file.CanonicalFullPath)
{
#if WINDOWS
LuaConsole1.Restart();
#endif
}
Global.Config.RecentRoms.Add(file.CanonicalFullPath);
if (File.Exists(PathManager.SaveRamPath(game)))
LoadSaveRam();
@ -1252,9 +1258,6 @@ namespace BizHawk.MultiClient
TAStudio1.Restart();
Cheats1.Restart();
ToolBox1.Restart();
#if WINDOWS
LuaConsole1.Restart();
#endif
if (Global.Config.LoadCheatFileByGame)
{