open_dir

Синтаксис

native open_dir(dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs = false, const valve_path_id[] = "GAME");

Употреба

dir
Path to open.
firstfile
String buffer to hold first file name
length
Maximum size of the string buffer
type
Optional variable to store the file type
use_valve_fs
If true, the Valve file system will be used instead.
This can be used to find files existing in any of
the Valve search paths, rather than solely files
existing directly in the gamedir.
valve_path_id
If use_valve_fs, a search path from gameinfo or NULL_STRING for all search paths.

Описание

Opens a directory/folder for contents enumeration.

Забележка

Directories are closed with close_dir().

Връщаща стойност

Handle to the directory, 0 otherwise