From f655a4587ec59fd75a6ddce339d1f86e28378378 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 15 Mar 2020 18:07:57 -0500 Subject: [PATCH] simplify ToolManager.GenerateDefaultCheatFilename --- BizHawk.Client.EmuHawk/tools/ToolManager.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/ToolManager.cs b/BizHawk.Client.EmuHawk/tools/ToolManager.cs index 846c42979a..d60119fc3f 100644 --- a/BizHawk.Client.EmuHawk/tools/ToolManager.cs +++ b/BizHawk.Client.EmuHawk/tools/ToolManager.cs @@ -863,10 +863,7 @@ namespace BizHawk.Client.EmuHawk public string GenerateDefaultCheatFilename() { - var pathEntry = _config.PathEntries[Global.Game.System, "Cheats"] - ?? _config.PathEntries[Global.Game.System, "Base"]; - - var path = _config.PathEntries.AbsolutePathFor(pathEntry.Path, Global.Game.System); + var path = _config.PathEntries.CheatsAbsolutePath(Global.Game.System); var f = new FileInfo(path); if (f.Directory != null && f.Directory.Exists == false)