Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8133


Ignore:
Timestamp:
Mar 27, 2011, 12:21:55 AM (13 years ago)
Author:
youngk
Message:

Commiting adjustments done for kicklib, now also to mac_osx.

Location:
code/branches/mac_osx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/cmake/PackageConfigOSX.cmake

    r8125 r8133  
    2626INCLUDE(CheckPackageVersion)
    2727
    28 CHECK_PACKAGE_VERSION(1.0)
     28CHECK_PACKAGE_VERSION(1.1)
    2929
    3030IF(NOT _INTERNAL_PACKAGE_MESSAGE)
  • code/branches/mac_osx/src/Orxonox.cc

    r8091 r8133  
    6363#ifndef ORXONOX_USE_WINMAIN
    6464
    65 // On Apples, the kernel supplies a second argument, which we have to circumvent
    6665#ifdef ORXONOX_PLATFORM_APPLE
    67 # define MAC_ARGC_HACK 2
     66        // On Apples, the kernel supplies a second argument, which we have to circumvent
     67        const int firstArgument = 2;
    6868#else
    69 # define MAC_ARGC_HACK 1
     69        // 0 is the execution path
     70        const int firstArgument = 1;
    7071#endif
    71    
     72       
    7273        std::string strCmdLine;
    73         for (int i = MAC_ARGC_HACK; i < argc; ++i)
     74        for (int i = firstArgument; i < argc; ++i)
    7475            strCmdLine = strCmdLine + argv[i] + ' ';
    7576#endif
  • code/branches/mac_osx/src/OrxonoxMac.h

    r8083 r8133  
    1 //
    2 //  OrxonoxMac.h
    3 //  Orxonox
    4 //
    5 //  Created by Kevin Jonas Young on 14.03.11.
    6 //  Copyright 2011 -. All rights reserved.
    7 //
     1/*
     2 *   ORXONOX - the hottest 3D action shooter ever to exist
     3 *                    > www.orxonox.net <
     4 *
     5 *
     6 *   License notice:
     7 *
     8 *   This program is free software; you can redistribute it and/or
     9 *   modify it under the terms of the GNU General Public License
     10 *   as published by the Free Software Foundation; either version 2
     11 *   of the License, or (at your option) any later version.
     12 *
     13 *   This program is distributed in the hope that it will be useful,
     14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16 *   GNU General Public License for more details.
     17 *
     18 *   You should have received a copy of the GNU General Public License
     19 *   along with this program; if not, write to the Free Software
     20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     21 *
     22 *   Author:
     23 *      Kevin J. Young (youngk) 2011
     24 *   Co-authors:
     25 *      Fabian Landau (x3n)
     26 *
     27 */
    828
    929#import <Cocoa/Cocoa.h>
  • code/branches/mac_osx/src/OrxonoxMac.mm

    r8090 r8133  
    1 //
    2 //  OrxonoxMac.mm
    3 //  Orxonox
    4 //
    5 //  Created by Kevin Jonas Young on 14.03.11.
    6 //  Copyright 2011 -. All rights reserved.
    7 //
     1/*
     2 *   ORXONOX - the hottest 3D action shooter ever to exist
     3 *                    > www.orxonox.net <
     4 *
     5 *
     6 *   License notice:
     7 *
     8 *   This program is free software; you can redistribute it and/or
     9 *   modify it under the terms of the GNU General Public License
     10 *   as published by the Free Software Foundation; either version 2
     11 *   of the License, or (at your option) any later version.
     12 *
     13 *   This program is distributed in the hope that it will be useful,
     14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16 *   GNU General Public License for more details.
     17 *
     18 *   You should have received a copy of the GNU General Public License
     19 *   along with this program; if not, write to the Free Software
     20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     21 *
     22 *   Author:
     23 *      Kevin J. Young (youngk) 2011
     24 *   Co-authors:
     25 *      Fabian Landau (x3n)
     26 *
     27 */
    828
    929#import "OrxonoxMac.h"
Note: See TracChangeset for help on using the changeset viewer.