Description

[Made for GameMaker Studio 2]

This extension is for Windows, macOS, and Ubuntu.

Manage files/folders without a sandbox; overrides GameMaker Studio 2's built-in functions.

Each function that does not return a string, will return true on success, and false on failure.

Functions included:

  • real file_copy(string fname,string newname)

  • real file_rename(string oldname,string newname)

  • real file_exists(string fname)

  • real file_delete(string fname)

  • real directory_create(string dname)

  • real directory_copy(string dname,string newname)

  • real directory_rename(string oldname,string newname)

  • real directory_exists(string dname)

  • real directory_destroy(string dname)

  • string directory_contents(string dname)

  • string environment_get_variable(string name)

  • real environment_set_variable(string name, string value)

  • string get_working_directory()

  • real set_working_directory(string dname)

  • string get_program_directory()

  • string get_temp_directory()

The DLL's full source code included.

Very big thanks to Josh Ventura, for writing the widen() and shorten() scripts, enabling UTF-8 support on Windows.

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

GMS2 - Version 9.9.9. Published June 11, 2019

  • [All Platforms] Added new function directory_contents(). Returns the absolute path to all files and folders in the specified directory, separated by a new line character.

  • [Windows] Significantly smaller DLL file size.

  • [macOS] Return the mac app bundle "Resources" directory on macOS, if it exists, otherwise return executable directory (via the function get_working_directory).

GMS1 - Version 2.4.0. Published March 2, 2019

Please replace all Scripts and Included Files in your existing projects to apply this update!!!

  • [macOS] [Ubuntu] Fixed a safety issue with the use of the POSIX functions dirname() and basename().
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top