game_path_exists() public static method

Check if the game path is correct. Do we find the aion.bin file? Do we find the chat log?
public static game_path_exists ( ) : System.Boolean
return System.Boolean
 private void cmdOK_Click(object sender, EventArgs e)
 {
     cmdApply_Click(this, e);
     if (!Config.game_path_exists())
     {
         MessageBox.Show("AION path is not correcty set. Please choose your AION install path", "AION path needed", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         Config.create_aion_config_file();
         this.Close();
     }
 }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();

            //If Aion path is not configured yet, do so
            if (!Config.game_path_exists())
            {
                //Prompt user
                MessageBox.Show("Please set the path for your AION installation.", "Need AION path!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                //Setup Config window to get path from user
                ConfigWindow cfg = new ConfigWindow();
                cfg.ShowDialog();
            }

            //Setup the main window to display
            main_window = new MeterWindow();
            Application.Run(main_window);
        }