S
Sam (Deleted User)
Guest
[Made for GameMaker Studio 2]
Function Documentation (PDF)
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 filename_absolute(string fname)
- string filename_canonical(string fname)
- string filename_equivalent(string fname1, string fname2)
- string environment_get_variable(string name)
- real environment_get_variable_exists(string name)
- real environment_set_variable(string name, string value)
- real environment_unset_variable(string name)
- string environment_expand_variables(string str) // ${VARIABLE}
- string directory_get_current_working()
- real directory_set_current_working(string dname)
- string executable_get_directory()
- string directory_get_temporary_path()
- string directory_get_desktop_path()
- string directory_get_documents_path()
- string directory_get_downloads_path()
- string directory_get_music_path()
- string directory_get_pictures_path()
- string directory_get_videos_path()
- string executable_get_filename()
- string executable_get_pathname()
- real hardlink_create(string fname, string newname)
- real file_numblinks(string fname)
- real file_bin_numblinks(real fd)
- real symlink_create(string fname, string newname)
- real symlink_copy(string fname, string newname)
- real symlink_exists(string fname)
- real file_get_date_created_year(string fname)
- real file_get_date_created_month(string fname)
- real file_get_date_created_day(string fname)
- real file_get_date_created_hour(string fname)
- real file_get_date_created_minute(string fname)
- real file_get_date_created_second(string fname)
- real file_get_date_accessed_year(string fname)
- real file_get_date_accessed_month(string fname)
- real file_get_date_accessed_day(string fname)
- real file_get_date_accessed_hour(string fname)
- real file_get_date_accessed_minute(string fname)
- real file_get_date_accessed_second(string fname)
- real file_get_date_modified_year(string fname)
- real file_get_date_modified_month(string fname)
- real file_get_date_modified_day(string fname)
- real file_get_date_modified_hour(string fname)
- real file_get_date_modified_minute(string fname)
- real file_get_date_modified_second(string fname)
- real file_bin_get_date_created_year(real fd)
- real file_bin_get_date_created_month(real fd)
- real file_bin_get_date_created_day(real fd)
- real file_bin_get_date_created_hour(real fd)
- real file_bin_get_date_created_minute(real fd)
- real file_bin_get_date_created_second(real fd)
- real file_bin_get_date_accessed_year(real fd)
- real file_bin_get_date_accessed_month(real fd)
- real file_bin_get_date_accessed_day(real fd)
- real file_bin_get_date_accessed_hour(real fd)
- real file_bin_get_date_accessed_minute(real fd)
- real file_bin_get_date_accessed_second(real fd)
- real file_bin_get_date_modified_year(real fd)
- real file_bin_get_date_modified_month(real fd)
- real file_bin_get_date_modified_day(real fd)
- real file_bin_get_date_modified_hour(real fd)
- real file_bin_get_date_modified_minute(real fd)
- real file_bin_get_date_modified_second(real fd)
- string directory_contents_first(string dname, string pattern, real includedirs, real recursive)
- real directory_contents_first_async(string dname, string pattern, real includedirs, real recursive)
- string directory_contents_next()
- real directory_contents_get_length()
- real directory_contents_get_order()
- real directory_contents_set_order(real order)
- real directory_contents_get_cntfiles()
- real directory_contents_get_maxfiles()
- real directory_contents_set_maxfiles(real maxfiles)
- real directory_contents_get_completion_status()
- real directory_contents_set_completion_status(real complete)
- real directory_contents_close()
- real file_bin_open(string fname, real mode)
- real file_bin_rewrite(real fd)
- real file_bin_close(real fd)
- real file_bin_size(real fd)
- real file_bin_position(real fd)
- real file_bin_seek(real fd, real pos)
- real file_bin_read_byte(real fd)
- real file_bin_write_byte(real fd, real byte)
- real file_text_open_read(string fname)
- real file_text_open_write(string fname)
- real file_text_open_append(string fname)
- real file_text_write_real(real fd, real val)
- real file_text_write_string(real fd, string str)
- real file_text_writeln(real fd)
- real file_text_eoln(real fd)
- real file_text_eof(real fd)
- real file_text_read_real(real fd)
- string file_text_read_string(real fd)
- string file_text_readln(real fd)
- string file_text_read_all(real fd)
- real file_text_open_from_string(string str)
- string file_bin_hardlinks(real fd, string dnames, real recursive)
- real file_text_close(real fd)
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 by a moderator: