diff options
author | mingchen | 2007-08-15 19:08:27 +0000 |
---|---|---|
committer | mingchen | 2007-08-15 19:08:27 +0000 |
commit | ae20503dae765b850d6acf6e30220b9688f30cac (patch) | |
tree | e1bb93fc5cc6b85ca7756687a9033c5cb8a7f862 /OpenSim/Framework | |
parent | More work on inventory, can now create other inventory types, like Clothes an... (diff) | |
download | opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.zip opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.tar.gz opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.tar.bz2 opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.tar.xz |
*Added the ability to run commands after all regions have started up
*By default, it is set to startup_commands.txt. Simply add a list of commands separated by a new line to be run or change the file by changing the path of a startup commands file in OpenSim.ini
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Console/LogBase.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs index 2b831fe..5f16303 100644 --- a/OpenSim/Framework/Console/LogBase.cs +++ b/OpenSim/Framework/Console/LogBase.cs | |||
@@ -409,9 +409,15 @@ namespace OpenSim.Framework.Console | |||
409 | 409 | ||
410 | public void MainLogPrompt() | 410 | public void MainLogPrompt() |
411 | { | 411 | { |
412 | string[] tempstrarray; | 412 | |
413 | string tempstr = this.CmdPrompt(this.componentname + "# "); | 413 | string tempstr = this.CmdPrompt(this.componentname + "# "); |
414 | tempstrarray = tempstr.Split(' '); | 414 | MainLogRunCommand(tempstr); |
415 | } | ||
416 | |||
417 | public void MainLogRunCommand(string command) | ||
418 | { | ||
419 | string[] tempstrarray; | ||
420 | tempstrarray = command.Split(' '); | ||
415 | string cmd = tempstrarray[0]; | 421 | string cmd = tempstrarray[0]; |
416 | Array.Reverse(tempstrarray); | 422 | Array.Reverse(tempstrarray); |
417 | Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); | 423 | Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); |