FANDOM


BYOND Environment This page contains an entry from the official DM Reference.

FormatEdit

#define FILE_DIR Path


ArgsEdit

Path: A search path on the current filesystem.

DescriptionEdit

This macro defines a search path to be used in evaluating resource files (icons and sounds). First the current directory is searched, then the first FILE_DIR path, then the next, etc.

ExampleEdit

#define FILE_DIR icons
#define FILE_DIR icons/mobs

mob/clown
  icon = 'clown.dmi'

This searches for the file at the paths "./clown.dmi", "./icons/clown.dmi", and "./icons/sounds/clown.dmi", where "." is the directory of the current source file.

See alsoEdit


preprocessor
directives #define | #error | #if | #ifdef | #ifndef | #include | #undef | #warn
macros DM_VERSION | __FILE__ | __LINE__ | __MAIN__
definitions DEBUG | FILE_DIR