diff --git a/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs b/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs index 44b2175b..ff2acc18 100644 --- a/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs +++ b/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs @@ -40,6 +40,11 @@ namespace PckStudio.Forms.Editor private GameRuleFile _file; private GameRuleFile.CompressionType compressionType; private GameRuleFile.CompressionLevel compressionLevel; + + private const string use_zlib = "Wii U, PS Vita"; + private const string use_deflate = "PS3"; + private const string use_xmem = "Xbox 360"; + public GameRuleFileEditor() { InitializeComponent(); @@ -49,20 +54,20 @@ namespace PckStudio.Forms.Editor private void PromptForCompressionType() { - ItemSelectionPopUp dialog = new ItemSelectionPopUp("Wii U, PS Vita", "PS3", "Xbox 360"); + ItemSelectionPopUp dialog = new ItemSelectionPopUp(use_zlib, use_deflate, use_xmem); dialog.LabelText = "Type"; dialog.ButtonText = "Ok"; if (dialog.ShowDialog() == DialogResult.OK) { switch(dialog.SelectedItem) { - case "Wii U, PS Vita": + case use_zlib: wiiUPSVitaToolStripMenuItem.Checked = true; break; - case "PS3": + case use_deflate: pS3ToolStripMenuItem.Checked = true; break; - case "Xbox 360": + case use_xmem: xbox360ToolStripMenuItem.Checked = true; break; }