Fixed a typo in open_dir native (#955)
dir[] parameter is not const, but it never changes.
This commit is contained in:
parent
3d517d69e2
commit
9fbf91ded0
|
@ -756,7 +756,7 @@ struct DirectoryHandle
|
|||
bool valvefs;
|
||||
};
|
||||
|
||||
// native open_dir(dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs=false, const valve_path_id[] = "GAME");
|
||||
// native open_dir(const dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs=false, const valve_path_id[] = "GAME");
|
||||
static cell AMX_NATIVE_CALL amx_open_dir(AMX *amx, cell *params)
|
||||
{
|
||||
int length;
|
||||
|
|
|
@ -519,7 +519,7 @@ native unlink(const filename[], bool:use_valve_fs = false, const valve_path_id[]
|
|||
*
|
||||
* @return Handle to the directory, 0 otherwise
|
||||
*/
|
||||
native open_dir(dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs = false, const valve_path_id[] = "GAME");
|
||||
native open_dir(const dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs = false, const valve_path_id[] = "GAME");
|
||||
|
||||
/**
|
||||
* Reads the next directory entry as a local filename.
|
||||
|
|
Loading…
Reference in New Issue
Block a user