diff --git a/server/src/bindings/ConnectionInfo.cpp b/server/src/bindings/ConnectionInfo.cpp index c831a62a..9fdc98d5 100644 --- a/server/src/bindings/ConnectionInfo.cpp +++ b/server/src/bindings/ConnectionInfo.cpp @@ -33,6 +33,13 @@ static void HwidExHashGetter(v8::Local, const v8::PropertyCallbackIn V8_RETURN_STRING(std::to_string(con->GetHwIdExHash())); } +static void HwId3Getter(v8::Local, const v8::PropertyCallbackInfo& info) +{ + V8_GET_ISOLATE_CONTEXT_RESOURCE(); + V8_GET_THIS_BASE_OBJECT(con, alt::IConnectionInfo); + V8_RETURN_STRING(con->GetHwId3()); +} + static void AuthTokenGetter(v8::Local, const v8::PropertyCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT_RESOURCE(); diff --git a/server/src/bindings/Player.cpp b/server/src/bindings/Player.cpp index 37de52c5..776372a1 100644 --- a/server/src/bindings/Player.cpp +++ b/server/src/bindings/Player.cpp @@ -218,6 +218,13 @@ static void HwidExHashGetter(v8::Local name, const v8::PropertyCallb V8_RETURN_STRING(std::to_string(_this->GetHwidExHash())); } +static void HwId3Getter(v8::Local name, const v8::PropertyCallbackInfo& info) +{ + V8_GET_ISOLATE(); + V8_GET_THIS_BASE_OBJECT(_this, IPlayer); + V8_RETURN_STRING(_this->GetHwId3()); +} + static void SetClothes(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT(); @@ -1513,6 +1520,7 @@ extern V8Class v8Player("Player", V8Helpers::SetAccessor(isolate, tpl, "socialID", &SocialIDGetter); V8Helpers::SetAccessor(isolate, tpl, "hwidHash", &HwidHashGetter); V8Helpers::SetAccessor(isolate, tpl, "hwidExHash", &HwidExHashGetter); + V8Helpers::SetAccessor(isolate, tpl, "hwId3", &HwId3Getter); V8Helpers::SetAccessor(isolate, tpl, "socialClubName"); V8Helpers::SetAccessor(isolate, tpl, "authToken"); diff --git a/shared/deps/cpp-sdk b/shared/deps/cpp-sdk index 30b5e35a..437a6d36 160000 --- a/shared/deps/cpp-sdk +++ b/shared/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit 30b5e35ab7081f7e8ff7ac2bc0568aa7cf38e6be +Subproject commit 437a6d36578cecbbf0eea5d6491db42752075d49