Browse Source

Use JSBind subsystem on Windows build

Josh Engebretson 10 years ago
parent
commit
48bebfe2b8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/ToolCore/JSBind/JSBModule.cpp

+ 3 - 1
Source/ToolCore/JSBind/JSBModule.cpp

@@ -340,6 +340,8 @@ void JSBModule::RegisterConstant(const String& constantName)
 
 
 bool JSBModule::Load(const String& jsonFilename)
 bool JSBModule::Load(const String& jsonFilename)
 {
 {
+    JSBind* jsbind = GetSubsystem<JSBind>();
+
     LOGINFOF("Loading Module: %s", jsonFilename.CString());
     LOGINFOF("Loading Module: %s", jsonFilename.CString());
 
 
     SharedPtr<File> jsonFile(new File(context_, jsonFilename));
     SharedPtr<File> jsonFile(new File(context_, jsonFilename));
@@ -417,7 +419,7 @@ bool JSBModule::Load(const String& jsonFilename)
     if (name_ == "Graphics")
     if (name_ == "Graphics")
     {
     {
 #ifdef _MSC_VER
 #ifdef _MSC_VER
-        if (JSBind::PLATFORM == "ANDROID" || JSBind::PLATFORM == "WEB")
+        if (jsbind->GetPlatform() == "ANDROID" || jsbind->GetPlatform() == "WEB")
         {
         {
             sourceDirs_.Push("Source/Atomic/Graphics/OpenGL");
             sourceDirs_.Push("Source/Atomic/Graphics/OpenGL");
         }
         }