plugin version for ie

This commit is contained in:
David Rose 2009-10-10 00:16:45 +00:00
parent dcc5447688
commit 13cb3d0ef0
2 changed files with 13 additions and 0 deletions

View File

@ -308,6 +308,7 @@ load_plugin(const string &p3d_plugin_filename,
<< "\nP3D_instance_feed_url_stream = " << P3D_instance_feed_url_stream
<< "\nP3D_instance_handle_event = " << P3D_instance_handle_event
<< "\n";
unload_dso();
return false;
}

View File

@ -43,6 +43,7 @@
// We can include this header file to get the DTOOL_PLATFORM
// definition, even though we don't link with dtool.
#include "dtool_platform.h"
#include "pandaVersion.h"
#define P3D_CONTENTS_FILENAME "contents.xml"
#define P3D_DEFAULT_PLUGIN_FILENAME "p3d_plugin.dll"
@ -447,6 +448,17 @@ int PPInstance::LoadPlugin( const std::string& dllFilename )
if (!load_plugin(pathname, "", "", true, "", "", "", false, false, nout)) {
nout << "Unable to launch core API in " << pathname << "\n";
error = 1;
} else {
#ifdef PANDA_OFFICIAL_VERSION
static const bool official = true;
#else
static const bool official = false;
#endif
P3D_set_plugin_version(P3D_PLUGIN_MAJOR_VERSION, P3D_PLUGIN_MINOR_VERSION,
P3D_PLUGIN_SEQUENCE_VERSION, official,
PANDA_DISTRIBUTOR,
PANDA_PACKAGE_HOST_URL, _core_api_dll.get_timestamp());
}
}