mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
*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
This commit is contained in:
@@ -409,9 +409,15 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
public void MainLogPrompt()
|
||||
{
|
||||
string[] tempstrarray;
|
||||
|
||||
string tempstr = this.CmdPrompt(this.componentname + "# ");
|
||||
tempstrarray = tempstr.Split(' ');
|
||||
MainLogRunCommand(tempstr);
|
||||
}
|
||||
|
||||
public void MainLogRunCommand(string command)
|
||||
{
|
||||
string[] tempstrarray;
|
||||
tempstrarray = command.Split(' ');
|
||||
string cmd = tempstrarray[0];
|
||||
Array.Reverse(tempstrarray);
|
||||
Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
|
||||
|
||||
Reference in New Issue
Block a user