[Opensim-users] Change console prompt

Gudule Lapointe gudule at spekuloos.be
Fri Oct 28 14:32:23 UTC 2011


In 
	string m_custom_prompt = configSource.Configs["Startup"].GetString("custom_prompt", String.Empty);
does "String.Empty" defines the value to use if custom_prompt is not set?

In this case, I guess we should use "Region" (the current value) instead?


Le 28 oct. 2011 à 15:09, Garmin Kawaguichi a écrit :

> 
>> ----- Original Message ----- From: "Gudule Lapointe" <gudule at spekuloos.be>
>> Sent: Friday, October 28, 2011 2:31 PM
>> Subject: Re: [Opensim-users] Change console prompt
>> to add a new variable in .ini file or in the .exe command-line parameters?
>> I don't know where (and how) they need to be defined in code / retrieved
>> from ini.
>> Once they are, I can adjust the default prompt in line 833 as told
>> previously with that variable, the same way as I do now with binary path
>> value.
>> In my previous posts, I said "simulator name" as example, but thinking
>> about it, the "prompt name" or "custom prompt" would probably be more
>> relevant.
> 
> Try that :
> 1) in OpenSim.ini under [Startup] add a line like
> custom_prompt = "I'm the One"
> 
> 2) in OpenSim.cs before line 833
> string m_custom_prompt = configSource.Configs["Startup"].GetString("custom_prompt", String.Empty);
> 
> 3) use the string m_custom_prompt at your convenience
> 
> With NO WARRANTY :)))
> 
> GCI 
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users




More information about the Opensim-users mailing list