Skip to content

Pika-Software/gm_efsw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gm_efsw

Entropia File System Watcher in Garry's Mod

Based on efsw library

API

-- fileName will be relative to garrysmod/ folder
GM:FileWatchEvent(actionType: number, watchID: number, fileName: string)

-- on error, will be efsw.ERROR_...
watchID: number = efsw.Watch(fileName: string, gamePath: string)

efsw.Unwatch(watchID: number)

efsw.ACTION_ADD = 1
efsw.ACTION_DELETE = 2
efsw.ACTION_MODIFIED = 3

efsw.ERROR_FILE_NOT_FOUND = -1
efsw.ERROR_FILE_NOT_READABLE = -2
efsw.ERROR_FILE_OUT_OF_SCOPE = -3
efsw.ERROR_FILE_REMOTE = -4
efsw.ERROR_FILE_REPEATED = -5
efsw.ERROR_UNSPECIFIED = -6

About

Entropia File System Watcher in Garry's Mod

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors