From f3d098a390777648961e284e3d2bacea30e8f56b Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 31 Mar 2012 13:41:00 +0000 Subject: [PATCH] Atari - hook up to the default paths --- BizHawk.MultiClient/config/PathManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BizHawk.MultiClient/config/PathManager.cs b/BizHawk.MultiClient/config/PathManager.cs index 5c014d62fe..b0dc53c8c8 100644 --- a/BizHawk.MultiClient/config/PathManager.cs +++ b/BizHawk.MultiClient/config/PathManager.cs @@ -68,6 +68,8 @@ namespace BizHawk.MultiClient { switch (system) { + case "A26": + return Global.Config.BaseAtari; case "NES": return Global.Config.BaseNES; case "SG": @@ -227,6 +229,9 @@ namespace BizHawk.MultiClient switch (sysID) { + case "A26": + path = PathManager.MakeAbsolutePath(Global.Config.PathAtariROMs, "A26"); + break; case "NES": path = PathManager.MakeAbsolutePath(Global.Config.PathNESROMs, "NES"); break; @@ -290,6 +295,7 @@ namespace BizHawk.MultiClient switch (game.System) { + case "A26": return Path.Combine(MakeAbsolutePath(Global.Config.PathAtariSaveRAM, "A26"), name + ".SaveRAM"); case "SMS": return Path.Combine(MakeAbsolutePath(Global.Config.PathSMSSaveRAM, "SMS"), name + ".SaveRAM"); case "GG": return Path.Combine(MakeAbsolutePath(Global.Config.PathGGSaveRAM, "GG"), name + ".SaveRAM"); case "SG": return Path.Combine(MakeAbsolutePath(Global.Config.PathSGSaveRAM, "SG"), name + ".SaveRAM"); @@ -311,6 +317,7 @@ namespace BizHawk.MultiClient name += "." + Path.GetFileNameWithoutExtension(Global.MovieSession.Movie.Filename); switch (game.System) { + case "A26": return Path.Combine(MakeAbsolutePath(Global.Config.PathAtariSavestates, "A26"), name); case "SMS": return Path.Combine(MakeAbsolutePath(Global.Config.PathSMSSavestates, "SMS"), name); case "GG": return Path.Combine(MakeAbsolutePath(Global.Config.PathGGSavestates, "GG"), name); case "SG": return Path.Combine(MakeAbsolutePath(Global.Config.PathSGSavestates, "SG"), name); @@ -330,6 +337,7 @@ namespace BizHawk.MultiClient string name = FilesystemSafeName(game); switch (game.System) { + case "A26": return Path.Combine(MakeAbsolutePath(Global.Config.PathAtariScreenshots, "A26"), name); case "SMS": return Path.Combine(MakeAbsolutePath(Global.Config.PathSMSScreenshots, "SMS"), name); case "GG": return Path.Combine(MakeAbsolutePath(Global.Config.PathGGScreenshots, "GG"), name); case "SG": return Path.Combine(MakeAbsolutePath(Global.Config.PathSGScreenshots, "SG"), name);