This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Exerro's profile picture

[question, lua, computer] stopping the pc from opening a disk on startup

Started by Exerro, 28 June 2012 - 07:18 PM
Exerro #1
Posted 28 June 2012 - 09:18 PM
I'm trying to make a firewall for a virus I made and I need to know if its possible to stop the pc from scanning disk drives first
MysticT #2
Posted 28 June 2012 - 09:58 PM
Yes, but the only way is to modify the shell (in rom/programs/shell), so you can't do it in a server you don't have access.
Exerro #3
Posted 28 June 2012 - 11:06 PM
so you can't edit that folder from ingame even using fs.delete/open?
MysticT #4
Posted 28 June 2012 - 11:19 PM
No, that's why it's called rom: Read Only Memory.
If it's on ssp or you have access to the server files, you can go to ".minecraft/mods/ComputerCraft/lua/rom/" and edit the files, otherwise there's no way to do it.
Exerro #5
Posted 29 June 2012 - 06:57 PM
ok but what about a program that detects if there is a disk and eject it if there is…and sorry for being such a noob :P/>/>
MysticT #6
Posted 29 June 2012 - 08:55 PM
That's possible, but it won't prevent the startup on the disk from being run. The startup from disks is run before anything else (of course, after the bios and shell).