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-10-12 08:03:29 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-12 08:03:29 +0300
commit25263a91297122b915e2b3f183ce0a014e74fde0 (patch)
treec7c98f9a7dc6f92e65166524f64fd80e7fcc41b2 /MainForm.cs
parent2b6255aa6622d9750133916502e94e2470a3ead9 (diff)
Fix for #694, translations
Diffstat (limited to 'MainForm.cs')
-rw-r--r--MainForm.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/MainForm.cs b/MainForm.cs
index 28fea748..e96dd007 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -27,7 +27,7 @@ namespace com.clusterrr.hakchi_gui
{
get
{
- switch(ConfigIni.ConsoleType)
+ switch (ConfigIni.ConsoleType)
{
default:
case ConsoleType.NES:
@@ -37,7 +37,7 @@ namespace com.clusterrr.hakchi_gui
case ConsoleType.SuperFamicom:
return 200;
}
- }
+ }
}
public static IEnumerable<string> InternalMods;
public static ClovershellConnection Clovershell;
@@ -540,7 +540,10 @@ namespace com.clusterrr.hakchi_gui
country = "cn";
else
if (country.Length > 2) country = country.Substring(country.Length - 2).ToLower();
+ // Trying to load flag
item.Image = (Image)rm.GetObject(country);
+ if (item.Image == null)
+ Debug.WriteLine($"There is no flag for \"{country}\"");
item.ImageScaling = ToolStripItemImageScaling.None;
item.Click += delegate (object sender, EventArgs e)
{
@@ -799,7 +802,8 @@ namespace com.clusterrr.hakchi_gui
{
maxGamesSize = (WorkerForm.NandCFree + WorkerForm.WritedGamesSize) - WorkerForm.ReservedMemory * 1024 * 1024;
toolStripStatusLabelSize.Text = string.Format("{0:F1}MB / {1:F1}MB", stats.Size / 1024.0 / 1024.0, maxGamesSize / 1024.0 / 1024.0);
- } else
+ }
+ else
{
toolStripStatusLabelSize.Text = string.Format("{0:F1}MB / ???MB", stats.Size / 1024.0 / 1024.0);
}