Announcement

Collapse
No announcement yet.

"CoreTech" module - it's hard to import at runtime without "CoreTech" module

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "CoreTech" module - it's hard to import at runtime without "CoreTech" module

    Hello all !
    It'll be a hard work to import at runtime while there is no "CoreTech" module which is used by other CAD modules in source code.
    Source code :

    Code:
    // CAD library is only available if CoreTech is available too
    bool bHasCoretech = System.Type.GetType("CoreTech") != null;
    
    // Support for Windows only
    bool bIsPlateformSupported = Target.Platform == UnrealTargetPlatform.Win64;
    
    if (bIsPlateformSupported && bHasCoretech)
    {
    PublicDefinitions.Add("CAD_INTERFACE");
    PublicDependencyModuleNames.Add("CoreTech");
    }
    As bHasCoretech equal false, CAD_INTERFACE will never been defined, so many codes will be commented.

    Click image for larger version  Name:	Untitled.png Views:	0 Size:	104.6 KB ID:	1789431
    Click image for larger version  Name:	Untitled02.png Views:	0 Size:	93.1 KB ID:	1789435

    btw: anyone have the source code of "CoreTech" module ?
Working...
X