PPInstance::PPInstance( CP3DActiveXCtrl& parentCtrl ) : m_parentCtrl( parentCtrl ), m_p3dInstance( NULL ), m_p3dObject( NULL ), m_handleRequestOnUIThread( true ), m_isInit( false ) { // We need the root dir first. m_rootDir = find_root_dir( ); // Then open the logfile. m_logger.Open( m_rootDir ); m_pluginLoaded = false; _contents_expiration = 0; _failed = false; // Ensure this event is initially in the "set" state, in case we // never get a download request before we get a close request. m_eventDownloadStopped.SetEvent( ); nout << "Plugin is built with " << PANDA_PACKAGE_HOST_URL << "\n"; }
int main(int argc, char *argv[], char *envp[]) { if(argc < 2) { usage(); return 1; } /* -- Commands -- * => stat + help * (help|-h|--help|-help) => help * (version|-v|--version|-version) => version * * init [directory] => init * st[at] [-verbose] [-long] [type] => stat `mx st env` == `mx env` * * role [-list|new] => role_ops * env[ironment] [-list|new] => env_ops * os => os_ops * host => host_ops * * conf[ig] [group] => conf * refresh => refresh project based on current stat * * [COMMAND] => misc. command from .mx/commands/... * * -- Environment variables / settings -- * * environment | settings | default * -------------+------------+----------- * MX_COLOR | mx-color | 1 * MX_PATH | mx-path | * */ if(streq(argv[1], "help")) { usage(); return 0; } else if(streq(argv[1], "curr")) { if(find_root_dir()) { curr(); } else { error("Not in a mx project."); } } else error("Unknown command %s. Try 'help'.", argv[1]); }