Ticket #2517: RegisterComponentsAsGlobal.diff

File RegisterComponentsAsGlobal.diff, 682 bytes (added by Radagast, 10 years ago)
  • source/simulation2/system/ComponentManager.cpp

    diff --git a/source/simulation2/system/ComponentManager.cpp b/source/simulation2/system/ComponentManager.cpp
    index d035c6f..a0861c1 100644
    a b void CComponentManager::Script_RegisterComponentType(ScriptInterface::CxPrivate*  
    301301            }
    302302        }
    303303    }
     304
     305    // To allow mods to override file contents from other mods without having to copy the file. TODO: Remove if it proves obsolete.
     306    CComponentManager::Script_RegisterGlobal(pCxPrivate, cname, ctor);
    304307}
    305308
    306309void CComponentManager::Script_RegisterInterface(ScriptInterface::CxPrivate* pCxPrivate, std::string name)