mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
New natives for reading dirs
This commit is contained in:
parent
ef908ff4f5
commit
a9d4e4e711
@ -69,6 +69,11 @@ native filesize(const filename[],{Float,Sql,Result,_}:...);
|
|||||||
//Delete a file (delete_file macro)
|
//Delete a file (delete_file macro)
|
||||||
native unlink(const filename[],{Float,Sql,Result,_}:...);
|
native unlink(const filename[],{Float,Sql,Result,_}:...);
|
||||||
|
|
||||||
|
//Returns a handle to a directory
|
||||||
|
native open_dir(dir[], firstfile[], length);
|
||||||
|
native next_file(dirh, buffer[], length);
|
||||||
|
native close_dir(dirh);
|
||||||
|
|
||||||
//These are type specific file getting and writing commands:
|
//These are type specific file getting and writing commands:
|
||||||
//c=char, s=short, l=long, i=int, f=float
|
//c=char, s=short, l=long, i=int, f=float
|
||||||
native fgetc(file); //read char (size 1)
|
native fgetc(file); //read char (size 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user