aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs18
1 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index d4c7e70..5745048 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -241,10 +241,7 @@ namespace OpenSim
241 break; 241 break;
242 242
243 case "debug": 243 case "debug":
244 if (cmdparams.Length > 0) 244 Debug(cmdparams);
245 {
246 Debug(cmdparams);
247 }
248 break; 245 break;
249 246
250 case "scene-debug": 247 case "scene-debug":
@@ -434,6 +431,7 @@ namespace OpenSim
434 case "create-region": 431 case "create-region":
435 CreateRegion(new RegionInfo(cmdparams[0], "Regions/" + cmdparams[1],false), true); 432 CreateRegion(new RegionInfo(cmdparams[0], "Regions/" + cmdparams[1],false), true);
436 break; 433 break;
434
437 case "remove-region": 435 case "remove-region":
438 string regName = CombineParams(cmdparams, 0); 436 string regName = CombineParams(cmdparams, 0);
439 437
@@ -544,6 +542,7 @@ namespace OpenSim
544 } 542 }
545 } 543 }
546 break; 544 break;
545
547 case "modules": 546 case "modules":
548 if (cmdparams.Length > 0) 547 if (cmdparams.Length > 0)
549 { 548 {
@@ -590,6 +589,7 @@ namespace OpenSim
590 m_commsManager.AddInventoryService(cmdparams[0]); 589 m_commsManager.AddInventoryService(cmdparams[0]);
591 } 590 }
592 break; 591 break;
592
593 default: 593 default:
594 string[] tmpPluginArgs = new string[cmdparams.Length + 1]; 594 string[] tmpPluginArgs = new string[cmdparams.Length + 1];
595 cmdparams.CopyTo(tmpPluginArgs, 1); 595 cmdparams.CopyTo(tmpPluginArgs, 1);
@@ -600,8 +600,15 @@ namespace OpenSim
600 } 600 }
601 } 601 }
602 602
603 public void Debug(string[] args) 603 /// <summary>
604 /// Turn on some debugging values for OpenSim.
605 /// </summary>
606 /// <param name="args"></param>
607 protected void Debug(string[] args)
604 { 608 {
609 if (args.Length == 0)
610 return;
611
605 switch (args[0]) 612 switch (args[0])
606 { 613 {
607 case "packet": 614 case "packet":
@@ -620,6 +627,7 @@ namespace OpenSim
620 } 627 }
621 628
622 break; 629 break;
630
623 default: 631 default:
624 m_console.Error("Unknown debug"); 632 m_console.Error("Unknown debug");
625 break; 633 break;