Replacing Built in commands

Blitz3D Forums/Blitz3D Programming/Replacing Built in commands

Craig H. Nisbet(Posted 2004) [#1]
Anyone know if there is a way to replace a standard blitz command with a funtion with same name in your code. I tried it and it didn't work. But swear I read that you could do this somewhere.

I want to right an asset tracking system that will log all the files that are use in the program and copy them to a seperate directory.

Ideally I would have a lib that replaced commands like LoadImage with a comand that had a tracking system built in. At least this way I wouldn't have to dig through all my libs and replace these commands with costum named ones.


GfK(Posted 2004) [#2]
Like this?
Print

Function Print()
	WaitKey
	End
End Function



big10p(Posted 2004) [#3]
As Gfk says. The only trouble is you then have no way of calling the proper blitz function.


Clyde(Posted 2004) [#4]
Simple then, why not opt for a slightly different function name of the command.

MY_Print() , or Print2 etc.


big10p(Posted 2004) [#5]
As he already said:
Ideally I would have a lib that replaced commands like LoadImage with a comand that had a tracking system built in. At least this way I wouldn't have to dig through all my libs and replace these commands with costum named ones.


;)