|
@@ -9,10 +9,13 @@
|
|
|
#include <Atomic/Core/Context.h>
|
|
#include <Atomic/Core/Context.h>
|
|
|
#include <Atomic/Core/StringUtils.h>
|
|
#include <Atomic/Core/StringUtils.h>
|
|
|
#include <Atomic/IO/FileSystem.h>
|
|
#include <Atomic/IO/FileSystem.h>
|
|
|
|
|
+#include <Atomic/IO/Log.h>
|
|
|
#include <Atomic/Input/Input.h>
|
|
#include <Atomic/Input/Input.h>
|
|
|
#include <Atomic/Resource/ResourceCache.h>
|
|
#include <Atomic/Resource/ResourceCache.h>
|
|
|
#include <Atomic/UI/UI.h>
|
|
#include <Atomic/UI/UI.h>
|
|
|
|
|
|
|
|
|
|
+#include <Atomic/IPC/IPC.h>
|
|
|
|
|
+#include <Atomic/IPC/IPCEvents.h>
|
|
|
#include <Atomic/IPC/IPCBroker.h>
|
|
#include <Atomic/IPC/IPCBroker.h>
|
|
|
|
|
|
|
|
#include <ToolCore/ToolEnvironment.h>
|
|
#include <ToolCore/ToolEnvironment.h>
|
|
@@ -34,6 +37,7 @@ AEPlayer::AEPlayer(Context* context) :
|
|
|
mode_(AE_PLAYERMODE_WIDGET)
|
|
mode_(AE_PLAYERMODE_WIDGET)
|
|
|
{
|
|
{
|
|
|
SubscribeToEvent(E_EDITORSHUTDOWN, HANDLER(AEPlayer, HandleEditorShutdown));
|
|
SubscribeToEvent(E_EDITORSHUTDOWN, HANDLER(AEPlayer, HandleEditorShutdown));
|
|
|
|
|
+ SubscribeToEvent(E_IPCWORKERSTART, HANDLER(AEPlayer, HandleIPCWorkerStarted));
|
|
|
|
|
|
|
|
assert(!context->GetSubsystem<AEPlayer>());
|
|
assert(!context->GetSubsystem<AEPlayer>());
|
|
|
context->RegisterSubsystem(this);
|
|
context->RegisterSubsystem(this);
|
|
@@ -57,6 +61,13 @@ void AEPlayer::HandleJSError(StringHash eventType, VariantMap& eventData)
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void AEPlayer::HandleIPCWorkerStarted(StringHash eventType, VariantMap& eventData)
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+ LOGINFOF("Yay");
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
bool AEPlayer::Play(AEPlayerMode mode, const IntRect &rect)
|
|
bool AEPlayer::Play(AEPlayerMode mode, const IntRect &rect)
|
|
|
{
|
|
{
|
|
|
ToolCore::ToolEnvironment* env = GetSubsystem<ToolCore::ToolEnvironment>();
|
|
ToolCore::ToolEnvironment* env = GetSubsystem<ToolCore::ToolEnvironment>();
|
|
@@ -88,7 +99,7 @@ bool AEPlayer::Play(AEPlayerMode mode, const IntRect &rect)
|
|
|
system->Launch(playerBinary, vargs);
|
|
system->Launch(playerBinary, vargs);
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
- return false;
|
|
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void AEPlayer::SetUIPlayer(UIPlayer* uiPlayer)
|
|
void AEPlayer::SetUIPlayer(UIPlayer* uiPlayer)
|