ID:269072
 
Hello, is there any way to change the securiy type when DS starts up. I want too use shell() function but it brings up a dialog and ask the person to run the command because DS starts in safe mode. I was woundering if there was any way to change the DS to trusted cause then it doesnt ask to run the shell() function. At least I think it doesnt, does it?
Green Lime wrote:
Hello, is there any way to change the securiy type when DS starts up. I want too use shell() function but it brings up a dialog and ask the person to run the command because DS starts in safe mode. I was woundering if there was any way to change the DS to trusted cause then it doesnt ask to run the shell() function. At least I think it doesnt, does it?

startup()

I hate to say it, but I'm not going to give you any further information. I can only think of one you thing you will probably do.

-Angel 0=/
In response to Angel of Flames
startup() requires trusted mode aswell. There is no way to work around it without the person running it allows it to at some point or another.
Make sure the .dmb and .rsc files are all the same name as the directory said files are in, this will make it run in trusted.
In response to Nadrew
Nadrew wrote:
Make sure the .dmb and .rsc files are all the same name as the directory said files are in, this will make it run in trusted.

I thought that would just make it run in safe. If the names were different, it would run in ultrasafe. A game has to be explicitly started up as trusted.
In response to Nick231
Nick231 wrote:
startup() requires trusted mode aswell. There is no way to work around it without the person running it allows it to at some point or another.

LOL Are u saying that the fact of doing startup() is pointless because u have to be in trusted mode just so it can work. And then if your in the trusted mode you don't need to do startup() :) I love the design DanTom did for startup().
In response to Jon88
Oh, yes. You're correct. The only place you'd really need shell() is in Linux, so you could just run it with the -trusted option. shell() isn't exactly safe to use without confirmation on Windows.
In response to Green Lime
Green Lime wrote:
LOL Are u saying that the fact of doing startup() is pointless because u have to be in trusted mode just so it can work. And then if your in the trusted mode you don't need to do startup() :) I love the design DanTom did for startup().

startup() isn't meant to be used as a way to get around safe mode, and it shouldn't be; safe mode is there to protect us. While I'm not sure what startup()'s purpose is, I've found a use for it recently. I use it to get my internal IP address right before I send myself off to my router's port forwarding page. This is so I can let Windows (or Linksys, not sure who does it) decide my IP address dynamically and still be able to host games easily. =)