Changeset 558


Ignore:
Timestamp:
11/14/2008 6:44:23 AM (3 years ago)
Author:
lowjoel
Message:

Fixed #59

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Plugins.cs

    r418 r558  
    9696        { 
    9797            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolve); 
    98             foreach (string fileName in Directory.GetFiles(PLUGINSFOLDER)) 
     98            string pluginsFolder = Path.Combine( 
     99                Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), //Assembly location 
     100                PLUGINSFOLDER //Plugins folder 
     101            ); 
     102 
     103            foreach (string fileName in Directory.GetFiles(pluginsFolder)) 
    99104            { 
    100105                FileInfo file = new FileInfo(fileName); 
     
    115120        /// The path to the folder containing the plugins. 
    116121        /// </summary> 
    117         public const string PLUGINSFOLDER = "Plugins/"; 
     122        public const string PLUGINSFOLDER = "Plugins"; 
    118123 
    119124        public override List<PluginInstance> Plugins 
Note: See TracChangeset for help on using the changeset viewer.