Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 16 for code/branches/tutorial


Ignore:
Timestamp:
Oct 10, 2007, 10:05:58 AM (17 years ago)
Author:
nicolasc
Message:

killed some mac stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/Tutorial/ExampleApplication.h

    r6 r16  
    2626#include "ExampleFrameListener.h"
    2727
     28#if 0
    2829#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
    2930#include <CoreFoundation/CoreFoundation.h>
     
    5253}
    5354#endif
     55#endif
    5456
    5557using namespace Ogre;
     
    6971                // On windows files are searched for in the current working directory, on OS X however
    7072                // you must provide the full path, the helper function macBundlePath does this for us.
    71 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
    72                 mResourcePath = macBundlePath() + "/Contents/Resources/";
    73 #else
    7473                mResourcePath = "";
    75 #endif
    7674    }
    7775    /// Standard destructor
     
    221219                typeName = i->first;
    222220                archName = i->second;
    223 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
    224                 // OS X does not set the working directory relative to the app,
    225                 // In order to make things portable on OS X we need to provide
    226                 // the loading with it's own bundle path location
    227                 ResourceGroupManager::getSingleton().addResourceLocation(
    228                     String(macBundlePath() + "/" + archName), typeName, secName);
    229 #else
    230221                ResourceGroupManager::getSingleton().addResourceLocation(
    231222                    archName, typeName, secName);
    232 #endif
    233223            }
    234224        }
Note: See TracChangeset for help on using the changeset viewer.