diff --git a/modules/fakemeta/AMBuilder b/modules/fakemeta/AMBuilder
index f2d81457..7b83a3f4 100644
--- a/modules/fakemeta/AMBuilder
+++ b/modules/fakemeta/AMBuilder
@@ -15,7 +15,7 @@ binary.sources = [
'fakemeta_amxx.cpp',
'pdata.cpp',
'pdata_entities.cpp',
- 'pdata_gc.cpp',
+ 'pdata_gamerules.cpp',
'forward.cpp',
'fm_tr.cpp',
'pev.cpp',
diff --git a/modules/fakemeta/fakemeta_amxx.cpp b/modules/fakemeta/fakemeta_amxx.cpp
index 54b9da8a..4be7c85a 100644
--- a/modules/fakemeta/fakemeta_amxx.cpp
+++ b/modules/fakemeta/fakemeta_amxx.cpp
@@ -65,7 +65,7 @@ void OnAmxxAttach()
}
MF_AddNatives(pdata_entities_natives);
- MF_AddNatives(pdata_gc_natives);
+ MF_AddNatives(pdata_gamerules_natives);
}
void OnPluginsLoaded()
diff --git a/modules/fakemeta/fakemeta_amxx.h b/modules/fakemeta/fakemeta_amxx.h
index f3f1e661..a41cccda 100644
--- a/modules/fakemeta/fakemeta_amxx.h
+++ b/modules/fakemeta/fakemeta_amxx.h
@@ -56,7 +56,7 @@ extern AMX_NATIVE_INFO dllfunc_natives[];
extern AMX_NATIVE_INFO forward_natives[];
extern AMX_NATIVE_INFO pdata_natives[];
extern AMX_NATIVE_INFO pdata_entities_natives[];
-extern AMX_NATIVE_INFO pdata_gc_natives[];
+extern AMX_NATIVE_INFO pdata_gamerules_natives[];
extern AMX_NATIVE_INFO tr_Natives[];
extern AMX_NATIVE_INFO pev_natives[];
extern AMX_NATIVE_INFO glb_natives[];
diff --git a/modules/fakemeta/msvc12/fakemeta.vcxproj b/modules/fakemeta/msvc12/fakemeta.vcxproj
index 4230b3be..68d2e4a6 100644
--- a/modules/fakemeta/msvc12/fakemeta.vcxproj
+++ b/modules/fakemeta/msvc12/fakemeta.vcxproj
@@ -105,7 +105,7 @@
-
+
diff --git a/modules/fakemeta/msvc12/fakemeta.vcxproj.filters b/modules/fakemeta/msvc12/fakemeta.vcxproj.filters
index 5c3af686..67380042 100644
--- a/modules/fakemeta/msvc12/fakemeta.vcxproj.filters
+++ b/modules/fakemeta/msvc12/fakemeta.vcxproj.filters
@@ -71,15 +71,15 @@
Module SDK\SDK Base
-
- Source Files
-
Memtools
Source Files
+
+ Source Files
+
diff --git a/modules/fakemeta/pdata_gc.cpp b/modules/fakemeta/pdata_gamerules.cpp
similarity index 93%
rename from modules/fakemeta/pdata_gc.cpp
rename to modules/fakemeta/pdata_gamerules.cpp
index e665ccad..6ad806d1 100644
--- a/modules/fakemeta/pdata_gc.cpp
+++ b/modules/fakemeta/pdata_gamerules.cpp
@@ -14,13 +14,6 @@
#include "fakemeta_amxx.h"
#include "pdata_shared.h"
-#define CHECK_GAMERULES() \
- if (!GameRulesAddress) \
- { \
- MF_LogError(amx, AMX_ERR_NATIVE, "%s is disabled. Check your AMXX log.", __FUNCTION__); \
- return 0; \
- }
-
// native any:get_gamerules_int(const class[], const member[], element = 0);
static cell AMX_NATIVE_CALL get_gamerules_int(AMX *amx, cell *params)
{
@@ -229,7 +222,7 @@ static cell AMX_NATIVE_CALL find_gamerules_info(AMX *amx, cell *params)
}
-AMX_NATIVE_INFO pdata_gc_natives[] =
+AMX_NATIVE_INFO pdata_gamerules_natives[] =
{
{ "get_gamerules_int" , get_gamerules_int },
{ "set_gamerules_int" , set_gamerules_int },
diff --git a/modules/fakemeta/pdata_shared.h b/modules/fakemeta/pdata_shared.h
index ba922765..8384fa73 100644
--- a/modules/fakemeta/pdata_shared.h
+++ b/modules/fakemeta/pdata_shared.h
@@ -63,6 +63,13 @@ enum class BaseFieldType
return 0; \
}
+#define CHECK_GAMERULES() \
+ if (!GameRulesAddress) \
+ { \
+ MF_LogError(amx, AMX_ERR_NATIVE, "%s is disabled. Check your AMXX log.", __FUNCTION__); \
+ return 0; \
+ }
+
class PvData
{
public:
@@ -152,7 +159,7 @@ public:
}
else
{
- set_pdata(pObject, data.fieldOffset, static_cast(value), element);
+ set_pdata(pObject, data.fieldOffset, static_cast(value), element);
}
break;
}
@@ -164,7 +171,7 @@ public:
}
else
{
- set_pdata(pObject, data.fieldOffset, static_cast(value), element);
+ set_pdata(pObject, data.fieldOffset, static_cast(value), element);
}
break;
}