most uses of PathEntries[] and MakeAbsolutePath() use Game.System, not Emulator.SystemId. so change one particular cheat path routine to work like the others.

This commit is contained in:
goyuken 2013-12-11 02:05:24 +00:00
parent 95be616079
commit a7fabedfcd
1 changed files with 3 additions and 3 deletions

View File

@ -593,12 +593,12 @@ namespace BizHawk.Client.EmuHawk
public string GenerateDefaultCheatFilename()
{
PathEntry pathEntry = Global.Config.PathEntries[Global.Emulator.SystemId, "Cheats"];
PathEntry pathEntry = Global.Config.PathEntries[Global.Game.System, "Cheats"];
if (pathEntry == null)
{
pathEntry = Global.Config.PathEntries[Global.Emulator.SystemId, "Base"];
pathEntry = Global.Config.PathEntries[Global.Game.System, "Base"];
}
string path = PathManager.MakeAbsolutePath(pathEntry.Path, Global.Emulator.SystemId);
string path = PathManager.MakeAbsolutePath(pathEntry.Path, Global.Game.System);
var f = new FileInfo(path);
if (f.Directory != null && f.Directory.Exists == false)