Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Apps
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-03 05:27:22 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-03 05:27:22 +0300
commite8b64a514cc017bd75d521f802f208be14022db1 (patch)
tree22b2b5c72ed2e443aebc389d85380c5c5074c3c9 /Apps
parent8b0a6b789f9dbb0c48476770957424a720a8c09b (diff)
One more step to SNES Mini, separate configs
Diffstat (limited to 'Apps')
-rw-r--r--Apps/NesMiniApplication.cs34
1 files changed, 33 insertions, 1 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs
index d2b21946..3b0ab9bf 100644
--- a/Apps/NesMiniApplication.cs
+++ b/Apps/NesMiniApplication.cs
@@ -14,7 +14,39 @@ namespace com.clusterrr.hakchi_gui
{
public class NesMiniApplication : INesMenuElement
{
- public readonly static string GamesDirectory = Path.Combine(Program.BaseDirectoryExternal, "games");
+ public static string GamesDirectory
+ {
+ get
+ {
+ switch (ConfigIni.ConsoleType)
+ {
+ default:
+ case MainForm.ConsoleType.NES:
+ case MainForm.ConsoleType.Famicom:
+ return Path.Combine(Program.BaseDirectoryExternal, "games");
+ case MainForm.ConsoleType.SNES:
+ case MainForm.ConsoleType.SuperFamicom:
+ return Path.Combine(Program.BaseDirectoryExternal, "games_snes");
+ }
+ }
+ }
+ public static string GamesCloverPath
+ {
+ get
+ {
+ switch (ConfigIni.ConsoleType)
+ {
+ default:
+ case MainForm.ConsoleType.NES:
+ case MainForm.ConsoleType.Famicom:
+ return "/usr/share/games/nes/kachikachi";
+ case MainForm.ConsoleType.SNES:
+ case MainForm.ConsoleType.SuperFamicom:
+ return "/usr/share/games";
+ }
+ }
+ }
+
const string DefaultReleaseDate = "1900-01-01";
const string DefaultPublisher = "UNKNOWN";