Skip to content

Commit

Permalink
chore: update cpp-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Jun 6, 2024
1 parent ea3f1bc commit 1c6d1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions client/src/bindings/HandlingData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ static void GetForHandlingName(const v8::FunctionCallbackInfo<v8::Value>& info)
V8_RETURN(v8HandlingData.New(isolate->GetEnteredOrMicrotaskContext(), args));
}

/*
static void ReloadVehiclePhysics(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE_CONTEXT();
Expand All @@ -40,7 +39,6 @@ static void ReloadVehiclePhysics(const v8::FunctionCallbackInfo<v8::Value>& info

V8_RETURN_BOOLEAN(alt::ICore::Instance().ReloadVehiclePhysics(modelHash));
}
*/

static void HandlingNameHashGetter(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
{
Expand Down Expand Up @@ -1744,11 +1742,11 @@ static void DamageFlagsSetter(v8::Local<v8::String>, v8::Local<v8::Value> val, c

extern V8Class v8HandlingData("HandlingData", Constructor, [](v8::Local<v8::FunctionTemplate> tpl) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();

tpl->InstanceTemplate()->SetInternalFieldCount(static_cast<int>(V8Class::InternalFields::COUNT));

V8Helpers::SetStaticMethod(isolate, tpl, "getForHandlingName", &GetForHandlingName);
// V8Helpers::SetStaticMethod(isolate, tpl, "reloadVehiclePhysics", &ReloadVehiclePhysics);
V8Helpers::SetStaticMethod(isolate, tpl, "reloadVehiclePhysics", &ReloadVehiclePhysics);

V8Helpers::SetAccessor(isolate, tpl, "handlingNameHash", &HandlingNameHashGetter);
V8Helpers::SetAccessor(isolate, tpl, "mass", &MassGetter, &MassSetter);
Expand Down
2 changes: 1 addition & 1 deletion shared/deps/cpp-sdk
Submodule cpp-sdk updated 2 files
+1 −0 ICore.h
+1 −1 types/MValue.h

0 comments on commit 1c6d1f3

Please sign in to comment.