GameMaker Studio 2 (all)
Icon

File Manager

Samuel Venable

You must be logged in to obtain assets

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 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.

get_working_directory() will return the Unix working directory on Mac, which defaults to your system root "/". At the beginning of your game, you may change this to whatever you like, but I recommend your app bundle's "Resources" folder, which you may set it to with the GML Script - generate_working_directory().

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

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().

GMS2 - Version 7.0.0. Published March 6, 2019

  • [Ubuntu] Small bugs fixed.
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait