Esempio n. 1
0
        public bool checkActive()
        {
            String installed    = this.getPathFor(check_for_active_file);
            String settingsfile = getPathFor(setting_config);
            String injectfile   = getPathFor(setting_injector);

            if (File.Exists(installed))
            {
                if (!isActivated)
                {
                    if (File.Exists(settingsfile))
                    {
                        this.Config = new sweetConfig(settingsfile);
                    }
                    if (File.Exists(injectfile))
                    {
                        injectordata = new injector(injectfile);
                    }
                }
                isActivated = true;
            }
            else
            {
                isActivated  = false;
                injectordata = null;
                Config       = null;
            }
            return(isActivated);
        }
Esempio n. 2
0
 public bool checkActive()
 {
     String installed = this.getPathFor(check_for_active_file);
     String settingsfile = getPathFor(setting_config);
     String injectfile = getPathFor(setting_injector);
     if (File.Exists(installed))
     {
         if (!isActivated)
         {
             if (File.Exists(settingsfile)) this.Config = new sweetConfig(settingsfile);
             if (File.Exists(injectfile)) injectordata = new injector(injectfile);
         }
         isActivated = true;
     }
     else
     {
         isActivated = false;
         injectordata = null;
         Config = null;
     }
     return isActivated;
 }