HolyLib Wiki

autorefresh.AddFileToRefresh

 boolean autorefresh.AddFileToRefresh( string fileName )

Description

Adds a single file to the list of files that are periodically checked for changes using a background thread pool. (See holylib_autorefresh_threads)
This is separate from folder watching and is useful for watching a file that isn't inside a watched folder.

Arguments

1string fileName

Path (relative to MOD) of the file to watch

Returns

1boolean success

Returns false if the file was already being watched