gmlscripts / scripts

GMLscripts.com scripts for GameMaker
Other
76 stars 14 forks source link

Update save_screenshot.gml #13

Open korean-notebooks opened 5 years ago

korean-notebooks commented 5 years ago

Escape character error.

gmlscripts commented 5 years ago

Thanks, Jérémy. I need to look into this some more. According to the documentation, working_directory should include the trailing slash, so the script me be in error in a different way. And as I understand it, because of the way the sandbox system works, working_directory doesn't even have to be given, though I've read it is required to access subdirectories. I need to test this too.

gmlscripts commented 5 years ago

OK, it looks like:

  1. The slash is already included at the end of working_directory, so it is not needed in the script.
  2. It is not necessary to use working_directory at all, even if a subdirectory is required.
  3. If the subdirectory does not exists, it is created.

I might do some more tests and then I will update the script with the appropriate changes and better documentation.

Thanks again.

gmlscripts commented 5 years ago

And there is now a new update to GMS2 that allows one to disable the sandbox on some platforms. I'll need to consider how that will impact this script. More tests!