From 9dc1a0cbad748599950c7fc047dc004e99d0e7a4 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 9 Aug 2015 19:07:24 +0200 Subject: [PATCH] Backward compatibility hack so that older runtime versions will still be able to use 1.9 rtdist --- direct/src/plugin/p3dInstanceManager.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dInstanceManager.cxx b/direct/src/plugin/p3dInstanceManager.cxx index b5536b8836..793e6cf36e 100644 --- a/direct/src/plugin/p3dInstanceManager.cxx +++ b/direct/src/plugin/p3dInstanceManager.cxx @@ -258,14 +258,22 @@ initialize(int api_version, const string &contents_filename, // TODO: Linux multiplatform support. Just add the // appropriate platform strings to _supported_platforms. + } else { + nout << "Platform string was set by plugin to " << _platform << "\n"; } if (_supported_platforms.empty()) { + // Hack for older plug-ins, which should still remain compatible with + // newer versions of the runtime distribution. + if (_platform == "win32") { + _supported_platforms.push_back("win_i386"); + } + // We always support at least the specific platform on which we're // running. _supported_platforms.push_back(_platform); } - + #ifdef P3D_PLUGIN_LOG_DIRECTORY if (_log_directory.empty()) { _log_directory = P3D_PLUGIN_LOG_DIRECTORY;