View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-23-2014 , 16:10   Re: [ANY] Automatic Steam Update
Reply With Quote #302

Quote:
Originally Posted by robotortoise View Post
Yeah, but isn't TF2 executing the command, so can't it know where it's located?
No, the shell is executing it.

Quote:
Originally Posted by robotortoise View Post
(I'm just throwing out hypotheticals here. I'm not attacking the plugin. If anything, I'm attacking TF2! Auto update should be built in!)
Auto update is built in... on Linux.

However, it's more difficult to do on Windows due to Windows automatically locking files. As wikipedia puts it:

Quote:
Originally Posted by Wikiepda: File locking
Any file that is executing on the computer system as a program (e.g., an EXE, COM, DLL, CPL or other binary program file format) is normally prevented by the file system from being opened for write or delete access, reporting a sharing violation, despite the fact that the program is not opened by any application. However, some access is still allowed. For example, a running application file can be renamed or copied (read) even when executing.
While there are ways around this, Valve has chosen not to do them.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline