Quote:
Originally Posted by WhiteDragon
I meant easy for Stefan, not for a GS2 developer.
As far as I know, there is no hook for when something gets buffered into memory, so that'd actually be impossible.
The file rewriting thing is cool, although, the reason it works is probably because it changes the "file changed time", so I wonder if there is a better way than actually rewriting the whole thing (which could cause big problems if the file is large).
|
I wonder if movefile would work? I doubt it since it shouldn't change the time, but it might trigger some kind of file updated event, and it's worth a shot.
PHP Code:
movefile("levels/graphics/doors/mydoor.png", "levels/graphics/doors/mydoor.png");