You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
class PUERTS_API IPuertsModule : public IModuleInterface
{
public:
// ..... add
virtual double WaitingTimeout() = 0;
class FPuertsModule : public IPuertsModule,
public FUObjectArray::FUObjectCreateListener,
public FUObjectArray::FUObjectDeleteListener
{
// ... ... add
virtual double WaitingTimeout()
{
const UPuertsSetting& Settings = *GetDefault();
return Settings.WaitDebuggerTimeout;
}
// fix following with this function
int JsEnvManager::Init(UClientGameInstance* gameInstance)
{
m_GameInstance = gameInstance;
#if WITH_EDITOR
DebugEnabled = IPuertsModule::Get().IsDebugEnabled();
#endif
if (DebugEnabled)
{
int32 DebugPort = IPuertsModule::Get().DebugPort();
bool WaitDebbuger = IPuertsModule::Get().WaitDebugger();
double Timeout = IPuertsModule::Get().WaitingTimeout();
m_GameScript = MakeSharedpuerts::FJsEnv(std::make_unique(TEXT("JavaScript")), std::make_sharedpuerts::FDefaultLogger(), DebugPort);
if (WaitDebbuger)
{
m_GameScript->WaitDebugger(Timeout);
}
Beta Was this translation helpful? Give feedback.
All reactions