DatabaseManager::DatabaseManager() : QObject(), mptableModel(NULL), mptableModelStr(NULL), mptableModelRes(NULL), mptableModelPak(NULL), mmodelIndexStr(), mmodelIndexRes(), mmodelIndexPak(), mmodelIndexAppPak() { InitDataModel(); }
//----------------------------------------------------------------------------- // // Purpose: Valve entry point called after the Valve DLLs are loaded // Input : CreateInterfaceFn factory // Output : true is everything is good, false otherwise // //----------------------------------------------------------------------------- DLL_EXPORT bool VsMayaConnect( CreateInterfaceFn factory ) { ConnectTier1Libraries( &factory, 1 ); ConnectTier2Libraries( &factory, 1 ); ConnectTier3Libraries( &factory, 1 ); if ( !ConnectDataModel( factory ) ) return false; if ( InitDataModel( ) != INIT_OK ) return false; MathLib_Init( 2.2f, 2.2f, 0.0f, 2.0f, false, false, false, false ); if ( !g_pFullFileSystem || !g_pDataModel ) { Warning( "vsDmxIO is missing a required interface!\n" ); return false; } // Can't unload this plugin until the libraries have been disconnected g_okToUnload = false; return true; }
//----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- bool CDmxEditApp::PreInit( ) { CreateInterfaceFn factory = GetFactory(); MathLib_Init( 2.2f, 2.2f, 0.0f, 2.0f, false, false, false, false ); ConnectTier1Libraries( &factory, 1 ); ConnectTier2Libraries( &factory, 1 ); ConnectTier3Libraries( &factory, 1 ); if ( !ConnectDataModel( factory ) ) return false; if ( InitDataModel( ) != INIT_OK ) return false; if ( !g_pFullFileSystem || !g_pDataModel ) { Error( "// ERROR: dmxedit is missing a required interface!\n" ); return false; } return true; }