Replacing Built in commands
Blitz3D Forums/Blitz3D Programming/Replacing Built in commands
| ||
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. |
| ||
Like this?Print Function Print() WaitKey End End Function |
| ||
As Gfk says. The only trouble is you then have no way of calling the proper blitz function. |
| ||
Simple then, why not opt for a slightly different function name of the command. MY_Print() , or Print2 etc. |
| ||
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. ;) |