aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-21 20:46:30 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-21 20:46:30 +0000
commitd8fe0e231fb09687778aefddea26767f17aad0ee (patch)
tree2e43a79a1434e158c971f9a2eec544c7224175fa /src
parentfa2da67af8cd9acda89bc5f1fe008c5c8160055e (diff)
downloadusdx-d8fe0e231fb09687778aefddea26767f17aad0ee.tar.gz
usdx-d8fe0e231fb09687778aefddea26767f17aad0ee.tar.xz
usdx-d8fe0e231fb09687778aefddea26767f17aad0ee.zip
fixed missing PadLeft/Right
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2265 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/lua/ULuaCore.pas19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lua/ULuaCore.pas b/src/lua/ULuaCore.pas
index b8d7f710..393b580e 100644
--- a/src/lua/ULuaCore.pas
+++ b/src/lua/ULuaCore.pas
@@ -683,18 +683,19 @@ procedure TLuaCore.DumpPlugins;
I: integer;
begin
// print table header
- Log.LogStatus(' # ' + PadRight('Name', NameLength) +
- 'Version Status Paused #Errors', 'LuaCore Plugins');
+ Log.LogError(Format('%3s %-30s %-8s %-10s %-7s %-6s', [
+ '#', 'Name', 'Version', 'Status', 'Paused', '#Errors'
+ ]), 'LuaCore Plugins');
for I := 0 to High(Plugins) do
- Log.LogStatus(PadLeft(IntToStr(Plugins[I].Id), 3) + ' ' +
- PadRight(Plugins[I].Name, NameLength) +
- PadRight(Plugins[I].Version, 8) +
- PadRight(PluginStatusToString(Plugins[I].Status), 10) +
- PadRight(BoolToStr(Plugins[I].Paused, true), 7) + ' ' +
- PadRight(IntToStr(Plugins[I].CountErrors), 6), 'LuaCore Plugins');
+ Log.LogError(Format('%3d %-30s %-8s %-10s %-7s %-6d', [
+ Plugins[I].Id, Plugins[I].Name, Plugins[I].Version,
+ PluginStatusToString(Plugins[I].Status),
+ BoolToStr(Plugins[I].Paused, true),
+ Plugins[I].CountErrors
+ ]), 'LuaCore Plugins');
if (High(Plugins) < 0) then
- Log.LogStatus(' no plugins loaded ', 'LuaCore Plugins');
+ Log.LogError(' no plugins loaded ', 'LuaCore Plugins');
end;
// Implementation of TLuaPlugin