Samuel Venable
Time Killer

[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 file_size(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)
- real directory_size(string dname)
- string directory_contents(string dname)
- string directory_contents_ext(string dname, string pattern, real includedirs)
- string filename_absolute(string fname)
- string filename_canonical(string fname)
- string environment_get_variable(string name)
- real environment_set_variable(string name, string value)
- string environment_expand_variables(string str) // ${VARIABLE}
- string get_working_directory()
- real set_working_directory(string dname)
- string get_program_directory()
- string get_temp_directory()
- string get_program_filename()
- string get_program_pathname()
Very big thanks to Josh Ventura, for writing the widen() and shorten() scripts, enabling UTF-8 support on Windows.
Download Free for GameMaker Studio 2
Last edited: