Browse Source

Merge pull request #405 from AtomicGameEngine/JME-ATOMIC-PREFABSOUNDS

Make sure the script subsystem is created in player
JoshEngebretson 10 years ago
parent
commit
c9569af164
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/AtomicPlayer/Application/AtomicPlayer.cpp

+ 2 - 0
Source/AtomicPlayer/Application/AtomicPlayer.cpp

@@ -31,6 +31,7 @@
 #include <Atomic/Core/ProcessUtils.h>
 #include <Atomic/Core/ProcessUtils.h>
 #include <Atomic/Resource/ResourceCache.h>
 #include <Atomic/Resource/ResourceCache.h>
 #include <Atomic/Resource/ResourceEvents.h>
 #include <Atomic/Resource/ResourceEvents.h>
+#include <Atomic/Script/ScriptSystem.h>
 #include <Atomic/UI/UI.h>
 #include <Atomic/UI/UI.h>
 
 
 // Move me
 // Move me
@@ -73,6 +74,7 @@ void AtomicPlayerApp::Setup()
 #endif
 #endif
 
 
     FileSystem* filesystem = GetSubsystem<FileSystem>();
     FileSystem* filesystem = GetSubsystem<FileSystem>();
+    context_->RegisterSubsystem(new ScriptSystem(context_));
 
 
     engineParameters_["WindowTitle"] = "AtomicPlayer";
     engineParameters_["WindowTitle"] = "AtomicPlayer";