diff --git a/trunk/Projects/SAMufasaGUI/project1.lpi b/trunk/Projects/SAMufasaGUI/project1.lpi
index 49d17d9..82b3225 100644
--- a/trunk/Projects/SAMufasaGUI/project1.lpi
+++ b/trunk/Projects/SAMufasaGUI/project1.lpi
@@ -10,7 +10,7 @@
-
+
@@ -26,7 +26,7 @@
-
+
@@ -44,7 +44,7 @@
-
+
@@ -141,8 +141,8 @@
-
-
+
+
@@ -191,8 +191,8 @@
-
-
+
+
@@ -270,8 +270,8 @@
-
-
+
+
@@ -494,7 +494,7 @@
-
+
@@ -539,8 +539,8 @@
-
-
+
+
@@ -548,9 +548,9 @@
-
+
-
+
@@ -1374,9 +1374,9 @@
-
+
-
+
@@ -1601,7 +1601,7 @@
-
+
@@ -1656,7 +1656,7 @@
-
+
@@ -1731,7 +1731,7 @@
-
+
@@ -1742,7 +1742,7 @@
-
+
@@ -1863,15 +1863,15 @@
-
+
-
+
-
+
@@ -1903,7 +1903,7 @@
-
+
@@ -1961,7 +1961,7 @@
-
+
@@ -2008,19 +2008,19 @@
-
-
+
+
-
+
-
-
+
+
-
+
@@ -2036,7 +2036,7 @@
-
+
@@ -2057,10 +2057,10 @@
-
-
+
+
-
+
@@ -2073,124 +2073,124 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -2219,6 +2219,12 @@
+
+
+
+
+
+
diff --git a/trunk/Projects/SAMufasaGUI/testunit.lfm b/trunk/Projects/SAMufasaGUI/testunit.lfm
index c2f9fee..e19d125 100644
--- a/trunk/Projects/SAMufasaGUI/testunit.lfm
+++ b/trunk/Projects/SAMufasaGUI/testunit.lfm
@@ -1,7 +1,7 @@
object Form1: TForm1
- Left = 1040
+ Left = 1343
Height = 557
- Top = 323
+ Top = 181
Width = 734
ActiveControl = ScriptPanel
Caption = 'THA FUKING SIMBA'
diff --git a/trunk/Projects/SAMufasaGUI/testunit.lrs b/trunk/Projects/SAMufasaGUI/testunit.lrs
index e577b69..6839c02 100644
--- a/trunk/Projects/SAMufasaGUI/testunit.lrs
+++ b/trunk/Projects/SAMufasaGUI/testunit.lrs
@@ -1,10 +1,10 @@
{ This is an automatically generated lazarus resource file }
LazarusResources.Add('TForm1','FORMDATA',[
- 'TPF0'#6'TForm1'#5'Form1'#4'Left'#3#16#4#6'Height'#3'-'#2#3'Top'#3'C'#1#5'Wid'
- +'th'#3#222#2#13'ActiveControl'#7#11'ScriptPanel'#7'Caption'#6#16'THA FUKING '
- +'SIMBA'#12'ClientHeight'#3#20#2#11'ClientWidth'#3#222#2#10'KeyPreview'#9#4'M'
- +'enu'#7#8'MainMenu'#7'OnClose'#7#9'FormClose'#8'OnCreate'#7#10'FormCreate'#9
+ 'TPF0'#6'TForm1'#5'Form1'#4'Left'#3'?'#5#6'Height'#3'-'#2#3'Top'#3#181#0#5'Wi'
+ +'dth'#3#222#2#13'ActiveControl'#7#11'ScriptPanel'#7'Caption'#6#16'THA FUKING'
+ +' SIMBA'#12'ClientHeight'#3#20#2#11'ClientWidth'#3#222#2#10'KeyPreview'#9#4
+ +'Menu'#7#8'MainMenu'#7'OnClose'#7#9'FormClose'#8'OnCreate'#7#10'FormCreate'#9
+'OnDestroy'#7#11'FormDestroy'#10'OnShortCut'#7#13'FormShortCuts'#8'Position'
+#7#14'poScreenCenter'#10'LCLVersion'#6#6'0.9.29'#7'Visible'#9#0#8'TToolBar'#8
+'ToolBar1'#4'Left'#2#0#6'Height'#2#24#3'Top'#2#0#5'Width'#3#222#2#7'Caption'
diff --git a/trunk/Projects/SAMufasaGUI/testunit.pas b/trunk/Projects/SAMufasaGUI/testunit.pas
index 695ec37..19cdcc0 100644
--- a/trunk/Projects/SAMufasaGUI/testunit.pas
+++ b/trunk/Projects/SAMufasaGUI/testunit.pas
@@ -551,15 +551,9 @@ begin
if ScriptFile <> '' then
ScriptPath := ExtractFileDir(ScriptFile);
- if not DirectoryExists(PluginsPath) and not assigned(PluginsGlob) then
- begin
- if FirstRun then
- Writeln('Warning: The plugins directory specified in Settings isn''t valid. Not loading Plugins now.');
- end else if not Assigned(PluginsGlob) then
- begin
- PluginsGlob := TMPlugins.Create;
- PluginsGlob.AddAndLoadPath(PluginsPath);
- end;
+
+ if DirectoryExists(PluginsPath) then
+ PluginsGlob.AddAndLoadPath(PluginsPath);
if not DirectoryExists(IncludePath) then
if FirstRun then
Writeln('Warning: The include directory specified in the Settings isn''t valid.');
diff --git a/trunk/Units/MMLAddon/mmlpsthread.pas b/trunk/Units/MMLAddon/mmlpsthread.pas
index bdbca70..84c572a 100644
--- a/trunk/Units/MMLAddon/mmlpsthread.pas
+++ b/trunk/Units/MMLAddon/mmlpsthread.pas
@@ -564,12 +564,11 @@ begin
end;
-{ Include stuff here? }
-
-//{$I inc/colors.inc}
-//{$I inc/bitmaps.inc}
-
-
+initialization
+ PluginsGlob := TMPlugins.Create;
+finalization
+ //PluginsGlob.Free;
+ //Its a nice idea, but it will segfault... the program is closing anyway.
end.
diff --git a/trunk/Units/MMLCore/libloader.pas b/trunk/Units/MMLCore/libloader.pas
index b5b5db9..ef580af 100644
--- a/trunk/Units/MMLCore/libloader.pas
+++ b/trunk/Units/MMLCore/libloader.pas
@@ -42,6 +42,7 @@ implementation
if PluginDirs.Find(path,idx) then
LoadPluginsDir(idx)
else begin
+ writeln('Loading Path: ' + path);
PluginDirs.Add(path);
LoadPluginsDir(PluginDirs.Count-1);
end;