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:
parent
95be616079
commit
a7fabedfcd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue