(arcStrings.ArcIgnoreEncryption, 0) };
+ Title.ItemsSource = none.Concat (McgFormat.KnownKeys.OrderBy (x => x.Key));
+ }
+
+ public byte GetKey ()
+ {
+ return ByteKeyConverter.StringToByte (this.Passkey.Text);
+ }
+ }
+
+ internal static class ByteKeyConverter
+ {
+ public static string ByteToString (object value)
+ {
+ byte key = (byte)value;
+ return key.ToString ("X2", CultureInfo.InvariantCulture);
+ }
+
+ public static byte StringToByte (object value)
+ {
+ string s = value as string;
+ if (string.IsNullOrEmpty (s))
+ return 0;
+ byte key;
+ if (!byte.TryParse (s, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out key))
+ return 0;
+ return key;
+ }
+ }
+
+ [ValueConversion (typeof (byte), typeof (string))]
+ class ByteToStringConverter : IValueConverter
+ {
+ public object Convert (object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return ByteKeyConverter.ByteToString (value);
+ }
+
+ public object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return ByteKeyConverter.StringToByte (value);
+ }
+ }
+
+ [ValueConversion (typeof (string), typeof (byte))]
+ class StringToByteConverter : IValueConverter
+ {
+ public object Convert (object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return ByteKeyConverter.StringToByte (value);
+ }
+
+ public object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return ByteKeyConverter.ByteToString (value);
+ }
+ }
+}
diff --git a/supported.html b/supported.html
index 73090279..d4f874d0 100644
--- a/supported.html
+++ b/supported.html
@@ -376,7 +376,10 @@ Yuukyou Gangu 2
*.wbm | WPX\x1ABMP | No |
*.wpn | WBD\x1AWAV | No |
*.wwa | WPX\x1AWAV | No |
-*.mrg | MRG | No | F&C | Konata yori Kanata made |
+*.mrg | MRG | No | F&C |
+Guren ni Somaru Gin no Rozario
+Konata yori Kanata made
+ |
*.mcg | MCG 2.00 | No |
*.acd | ACD 1.00 | No |
*.pk *.gpk *.tpk *.wpk
| - | No | U-Me Soft |
@@ -417,6 +420,7 @@ Nega0
|
*.wag *.4ag | WAG@ GAF4 | No |
*.ykc | YKC001 | Yes | Yuka |
+Aozora no Mieru Oka
PriministAr
SuGirly Wish
_summer
|