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-25 00:24:36 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-25 00:24:36 +0300
commit4cb6b67080780263d30b9af5a69f02c9e1cdc343 (patch)
tree38770caeaa729d68b660105244595f51b92f07a2 /Apps
parent00425a9c6011ba8edf445608dfb3ce64a05e0c18 (diff)
More correct SortRawTitle
Diffstat (limited to 'Apps')
-rw-r--r--Apps/NesMiniApplication.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs
index 8c6983be..33f59573 100644
--- a/Apps/NesMiniApplication.cs
+++ b/Apps/NesMiniApplication.cs
@@ -351,6 +351,9 @@ namespace com.clusterrr.hakchi_gui
if (!hasUnsavedChanges) return false;
Debug.WriteLine(string.Format("Saving application \"{0}\" as {1}", Name, Code));
Name = Regex.Replace(Name, @"'(\d)", @"`$1"); // Apostrophe + any number in game name crashes whole system. What. The. Fuck?
+ var sortRawTitle = Name.ToLower();
+ if (sortRawTitle.StartsWith("the "))
+ sortRawTitle = sortRawTitle.Substring(4); // Sorting without "THE"
File.WriteAllText(ConfigPath,
$"[Desktop Entry]\n" +
$"Type=Application\n" +
@@ -366,7 +369,7 @@ namespace com.clusterrr.hakchi_gui
$"Simultaneous={(Simultaneous ? 1 : 0)}\n" +
$"ReleaseDate={ReleaseDate ?? DefaultReleaseDate}\n" +
$"SaveCount={SaveCount}\n" +
- $"SortRawTitle={(Name ?? Code).ToLower()}\n" +
+ $"SortRawTitle={sortRawTitle}\n" +
$"SortRawPublisher={(Publisher ?? DefaultPublisher).ToUpper()}\n" +
$"Copyright=hakchi2 ©2017 Alexey 'Cluster' Avdyukhin\n");