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
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-02-19 16:29:04 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-02-19 16:29:04 +0300
commite9574a8af10e640f7dff8ecd91cd0e8d41b191ec (patch)
treec4a4b5a2dfeb2d02716a904f93595431564e7e1e /Apps/NesMiniApplication.cs
parent67b72814e8943b02832e92f3ac9844c2cf722fe4 (diff)
Final fixes and cleanup
Diffstat (limited to 'Apps/NesMiniApplication.cs')
-rw-r--r--Apps/NesMiniApplication.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs
index 01ba4c1a..3142c6f9 100644
--- a/Apps/NesMiniApplication.cs
+++ b/Apps/NesMiniApplication.cs
@@ -1,16 +1,10 @@
-using com.clusterrr.Famicom;
-using com.clusterrr.hakchi_gui.Properties;
-using System;
-using System.Collections.Generic;
+using com.clusterrr.hakchi_gui.Properties;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
-using System.Linq;
-using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
-using System.Xml.XPath;
namespace com.clusterrr.hakchi_gui
{
@@ -18,7 +12,7 @@ namespace com.clusterrr.hakchi_gui
{
public readonly static string GamesDirectory = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "games");
const string DefaultReleaseDate = "1983-07-15"; // Famicom release day
- const string DefaultPublisher = "Nintendo";
+ const string DefaultPublisher = "NINTENDO";
protected string code;
public string Code
@@ -180,12 +174,14 @@ namespace com.clusterrr.hakchi_gui
application = N64Game.DefaultApp;
defaultCover = N64Game.DefaultCover;
break;
+ case ".sfc":
case ".smc":
prefixCode = SnesGame.Prefix;
application = SnesGame.DefaultApp;
defaultCover = SnesGame.DefaultCover;
break;
case ".gen":
+ case ".md":
case ".smd":
prefixCode = GenesisGame.Prefix;
application = GenesisGame.DefaultApp;
@@ -224,7 +220,7 @@ namespace com.clusterrr.hakchi_gui
game.FindCover(fileName, defaultCover, crc32);
game.Command = string.Format("{0} /usr/share/games/nes/kachikachi/{1}/{2}", application, code, romName);
game.Save();
- return game;
+ return NesMiniApplication.FromDirectory(gamePath);
}
private static NesMiniApplication ImportApp(string fileName)