Thread: Force Download
View Single Post
  #12  
Old 12-15-2009, 01:04 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by WhiteDragon View Post
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"); 
__________________
Reply With Quote