-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALTV-469 Update cpp-sdk #330
base: dev
Are you sure you want to change the base?
Conversation
Add HwidProtHash functions
{ | ||
V8_GET_ISOLATE_CONTEXT_RESOURCE(); | ||
V8_GET_THIS_BASE_OBJECT(con, alt::IConnectionInfo); | ||
V8_RETURN_STRING(std::to_string(con->GetHwIdProtHash())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут to_string не надо. он и так строка
server/src/bindings/Player.cpp
Outdated
{ | ||
V8_GET_ISOLATE(); | ||
V8_GET_THIS_BASE_OBJECT(_this, IPlayer); | ||
V8_RETURN_STRING(std::to_string(_this->GetHwidProtHash())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тоже to_string
@@ -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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V8Helpers::SetAccessor(isolate, tpl, "hwId3", &HwId3Getter); | |
V8Helpers::SetAccessor(isolate, tpl, "hwid3", &HwId3Getter); |
Add HwidProtHash functions