Skip to content

Commit

Permalink
ALTV-344 Expose V8 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzz-dev committed Sep 1, 2024
1 parent b8d7fd8 commit bd0025e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,15 @@ ALTV_JS_EXPORT const char* GetSDKHash()
{
return ALT_SDK_VERSION;
}

#ifndef ALTV_JS_SHARED
namespace alt
{
v8::Platform* GetV8Platform();
}

v8::Platform* alt::GetV8Platform()
{
return CV8ScriptRuntime::Instance().GetPlatform();
}
#endif

0 comments on commit bd0025e

Please sign in to comment.