Skip to content

Commit

Permalink
v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxyOfJungle committed Nov 13, 2023
1 parent db4a606 commit 32af86b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TurboGML/scripts/TGM_Files/TGM_Files.gml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum DIRSCAN_DATA_TYPE {
FULL_INFO,
}

// based on https://yal.cc/gamemaker-recursive-folder-copying/
/// @desc Reads all files in a directory and subdirectories. Returns different types of data.
/// @param {string} path_source The directory path.
/// @param {array} contents_array The array to fill with contents.
Expand All @@ -16,7 +17,7 @@ enum DIRSCAN_DATA_TYPE {
/// @param {real} data_type Determines the type of date to be returned. Example: DIRSCAN_DATA_TYPE.NAME_ONLY.
/// @param {bool} get_size Get file sizes while scanning.
/// @returns {array} Array with contents.
function directory_get_contents(path_source, contents_array, extension="*.*", search_files=true, search_folders=true, search_subdir=true, data_type=DIRSCAN_DATA_TYPE.NAME_ONLY, get_size=false) {
function directory_get_contents(path_source, contents_array, extension="*.*", search_files=true, search_folders=true, search_subdir=true, data_type=DIRSCAN_DATA_TYPE.FULL_PATH, get_size=false) {
if (!directory_exists(path_source)) {
return undefined;
}
Expand Down

0 comments on commit 32af86b

Please sign in to comment.