Fixed a typo in open_dir native (#955)

dir[] parameter is not const, but it never changes.
This commit is contained in:
ArKaNeMaN 2021-03-25 20:04:00 +03:00 committed by GitHub
parent 3d517d69e2
commit 9fbf91ded0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -756,7 +756,7 @@ struct DirectoryHandle
bool valvefs; 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) static cell AMX_NATIVE_CALL amx_open_dir(AMX *amx, cell *params)
{ {
int length; int length;

View File

@ -519,7 +519,7 @@ native unlink(const filename[], bool:use_valve_fs = false, const valve_path_id[]
* *
* @return Handle to the directory, 0 otherwise * @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. * Reads the next directory entry as a local filename.