From be3d078d5a621a43b017071c11abead950b2b722 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 21 Sep 2004 02:40:30 +0000 Subject: [PATCH] added is_amd64_server --- amxmodx/amxmodx.cpp | 10 ++++++++++ plugins/include/amxmodx.inc | 3 +++ 2 files changed, 13 insertions(+) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 390629ec..8d60ffa2 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -351,6 +351,15 @@ static cell AMX_NATIVE_CALL is_linux_server(AMX *amx, cell *params) #endif } +static cell AMX_NATIVE_CALL is_amd64_server(AMX *amx, cell *params) +{ +#if SMALL_CELL_SIZE==64 + return 1; +#else + return 0; +#endif +} + static cell AMX_NATIVE_CALL is_jit_enabled(AMX *amx, cell *params) // PM: Useless ;P { #ifdef JIT @@ -2731,6 +2740,7 @@ AMX_NATIVE_INFO amxmod_Natives[] = { { "get_xvar_num", get_xvar_num }, { "is_dedicated_server",is_dedicated_server }, { "is_linux_server", is_linux_server }, + { "is_amd64_server", is_amd64_server }, { "is_jit_enabled", is_jit_enabled }, { "is_user_authorized", is_user_authorized }, { "is_map_valid", is_map_valid }, diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index a0b62032..c3933e2c 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -187,6 +187,9 @@ native is_dedicated_server(); /* Returns 1 or 0. */ native is_linux_server(); +/* Returns 1 or 0. */ +native is_amd64_server(); + /* Returns 1 or 0. */ native is_jit_enabled();