From fda98126883a10fed07c23b8a7e7f5369b810dcf Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 31 May 2017 19:09:31 -0500 Subject: [PATCH] NGP - paths, display text --- BizHawk.Client.Common/Api/CoreSystem.cs | 3 ++- BizHawk.Client.Common/Global.cs | 2 ++ BizHawk.Client.Common/SystemInfo.cs | 7 ++++++- BizHawk.Client.Common/config/PathEntry.cs | 7 +++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/Api/CoreSystem.cs b/BizHawk.Client.Common/Api/CoreSystem.cs index 9d08544487..132a832b98 100644 --- a/BizHawk.Client.Common/Api/CoreSystem.cs +++ b/BizHawk.Client.Common/Api/CoreSystem.cs @@ -28,6 +28,7 @@ Playstation, WonderSwan, Libretro, - VirtualBoy + VirtualBoy, + NeoGeoPocket } } diff --git a/BizHawk.Client.Common/Global.cs b/BizHawk.Client.Common/Global.cs index d9d3317849..896a2c5567 100644 --- a/BizHawk.Client.Common/Global.cs +++ b/BizHawk.Client.Common/Global.cs @@ -146,6 +146,8 @@ namespace BizHawk.Client.Common return SystemInfo.Libretro; case "VB": return SystemInfo.VirtualBoy; + case "NGP": + return SystemInfo.NeoGeoPocket; } } } diff --git a/BizHawk.Client.Common/SystemInfo.cs b/BizHawk.Client.Common/SystemInfo.cs index c42296ef58..82414adc50 100644 --- a/BizHawk.Client.Common/SystemInfo.cs +++ b/BizHawk.Client.Common/SystemInfo.cs @@ -178,10 +178,15 @@ namespace BizHawk.Client.Common /// public static SystemInfo WonderSwan { get; } = new SystemInfo("WonderSwan", CoreSystem.WonderSwan, 1); + /// + /// Gets the instance for Virtual Boy + /// + public static SystemInfo VirtualBoy { get; } = new SystemInfo("Virtual Boy", CoreSystem.VirtualBoy, 1); + /// /// Gets the instance for TI-83 /// - public static SystemInfo VirtualBoy { get; } = new SystemInfo("VirtualBoy", CoreSystem.VirtualBoy, 1); + public static SystemInfo NeoGeoPocket { get; } = new SystemInfo("Neo-Geo Pocket", CoreSystem.NeoGeoPocket, 1); #endregion Get SystemInfo diff --git a/BizHawk.Client.Common/config/PathEntry.cs b/BizHawk.Client.Common/config/PathEntry.cs index 07c9d86224..898a4efd68 100644 --- a/BizHawk.Client.Common/config/PathEntry.cs +++ b/BizHawk.Client.Common/config/PathEntry.cs @@ -351,6 +351,13 @@ namespace BizHawk.Client.Common new PathEntry { System = "VB", SystemDisplayName = "VB", Type = "Save RAM", Path = Path.Combine(".", "SaveRAM"), Ordinal = 3 }, new PathEntry { System = "VB", SystemDisplayName = "VB", Type = "Screenshots", Path = Path.Combine(".", "Screenshots"), Ordinal = 4 }, new PathEntry { System = "VB", SystemDisplayName = "VB", Type = "Cheats", Path = Path.Combine(".", "Cheats"), Ordinal = 5 }, + + new PathEntry { System = "NGP", SystemDisplayName = "NGP", Type = "Base", Path = Path.Combine(".", "NGP"), Ordinal = 0 }, + new PathEntry { System = "NGP", SystemDisplayName = "NGP", Type = "ROM", Path = ".", Ordinal = 1 }, + new PathEntry { System = "NGP", SystemDisplayName = "NGP", Type = "Savestates", Path = Path.Combine(".", "State"), Ordinal = 2 }, + new PathEntry { System = "NGP", SystemDisplayName = "NGP", Type = "Save RAM", Path = Path.Combine(".", "SaveRAM"), Ordinal = 3 }, + new PathEntry { System = "NGP", SystemDisplayName = "NGP", Type = "Screenshots", Path = Path.Combine(".", "Screenshots"), Ordinal = 4 }, + new PathEntry { System = "NGP", SystemDisplayName = "NGP", Type = "Cheats", Path = Path.Combine(".", "Cheats"), Ordinal = 5 }, }; } }