• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows buffer_save_async() adding a 'default\' prefix to filename argument.

P

PlayLight

Guest
I've run into a strange problem while using the function > buffer_save_async().
Occasionally this function will apply 'default\' to the start of the filename argument.
For instance, saving a BUFFER which contains a png file:

Code:
FILE = buffer_save_async(BUFFER, "bin\img\image1.png", 0, BUFFER_SIZE);
will save the BUFFER successfully, but to "default\bin\img\image1.png" instead of "bin\img\image1.png".

This seem to only happen occasionally, so it has been quite difficult to replicate on demand and debug.

Does anyone know under what conditions this 'default/' prefix is applied?
Hopefully i'm just overlooking something simple.

(GM:S-v1.4.1763, wYYC)
 
Last edited by a moderator:
Top