OpenSceneGraph/include/osgDB
Robert Osfield b9a74c87e1 From Jeremy Bell,
"My patch is a slight refactoring of the mac specific code in
Registry.cpp and FileUtils.cpp, specifically around the library and
resource file path initilialization methods. This patch cleans up a
lot of the mac specific code by moving repeated code into separate
local functions in FileUtils.cpp that are only compiled on mac builds.
It also adds one function to the API,
appendPlatformSpecificResourceFilePaths in FileUtils. This function
will mirror the already existing
appendPlatformSpecificLibraryFilePaths except for resource file paths.
Currently this function is empty except when built on the mac, in
which case it will add the application bundle's internal Resources
folder and the bundle's parent folder. Previously this code was
implemented as a separate mac specific #ifdef block in Registry.cpp
around the initDataFilePathList method. However, it now is implemented
in appendPlatformSpecificResourceFilePaths in FileUtils.cpp and the
initDataFilePathList method is now the same on all platforms. This
patch should behave the same as before on non-mac platforms.

This patch already includes the fix that Eric mentioned earlier. This
patch is based off of the 0.99 release code. I have tested this patch
using the following testing scheme:

Make a proper bundled application.
While Run from the Finder:
   Test that it finds plugins in its internal plugins path.
   Test that it finds resources in its internal resources path.
   Test that it finds resources in the bundle's parent directory
   Test that it finds plugins in the user's Application Support Directory
   Test that it finds plugins in the system's Application Support Directory
   Test that it finds plugins in the Network Application Support Directory
   Check the plugin and resource path lists after they have been
initialized to see if they are in the correct order

While Run from the command line (both from it's parent directory and
from inside the /Contents/MacOS directory) and repeat the above tests.
Check that it also finds plugins and resources within the paths
defined by various environment variables.

Now, Make an application that is NOT bundled/command line only
   Test that it does NOT try to look in an internal bundle
plugin/resource directory for plugins or resources.
   Test that it finds plugins/resources in the paths defined by the
environment variables.
"
2005-07-26 21:07:31 +00:00
..
Archive Fixed method signatures. 2005-05-16 11:18:11 +00:00
DatabasePager Added ability to toggle on/off the pre compile of OpenGL objects in the 2005-05-31 05:37:13 +00:00
DotOsgWrapper Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
DynamicLibrary Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
Export Added pragma to remove warnings under VS.8.0 2005-05-24 18:57:13 +00:00
Field Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
FieldReader Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
FieldReaderIterator Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
FileNameUtils Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
FileUtils From Jeremy Bell, 2005-07-26 21:07:31 +00:00
ImageOptions Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
Input Added next stage of support for osg::Uniform in .osg plugin 2005-04-18 12:34:28 +00:00
Output Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
ParameterOutput Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
ReaderWriter Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
ReadFile Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
ReentrantMutex Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
Registry Added more comprehensive releaseGLObjects(State*=0) throughout Nodes, 2005-05-07 20:47:09 +00:00
SharedStateManager Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
Version Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
WriteFile Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00