| 2 | | * Copyright (c) 1997-2006 Ben Harrison, Keith Randall, Peter Ammon, |
|---|
| 3 | | * Ron Anderson, and others |
|---|
| 4 | | * |
|---|
| 5 | | * This software may be copied and distributed for educational, research, |
|---|
| 6 | | * and not for profit purposes provided that this copyright and statement |
|---|
| 7 | | * are included in all such copies. |
|---|
| 8 | | */ |
|---|
| 9 | | |
|---|
| 10 | | /* |
|---|
| 11 | | * Update 2006 - pete mack |
|---|
| 12 | | * This update works exclusively with Apple computers running OS X, |
|---|
| 13 | | * versions 10.3 and later. The still-usable old version uses QuickDraw |
|---|
| 14 | | * Graphics, "deprecated" as of 10.4 |
|---|
| 15 | | * |
|---|
| 16 | | * Support for legacy Macs and pre-10.3 OSX has been removed. |
|---|
| 17 | | * The old carbon code is still available in main-crb.c, |
|---|
| 18 | | * Angband version 3.0.6; pre-carboniferous code in angband main-mac.c |
|---|
| 19 | | */ |
|---|
| 20 | | |
|---|
| 21 | | /* |
|---|
| 22 | | * Use |
|---|
| 23 | | * make -f Makefile.osx |
|---|
| 24 | | * You must have XCode installed to compile. |
|---|
| 25 | | * |
|---|
| 26 | | * Initial framework (and most code) by Ben Harrison (benh@phial.com). |
|---|
| 27 | | * Some code adapted from "MacAngband 2.6.1" by Keith Randall |
|---|
| 28 | | * Initial PowerMac port by Maarten Hazewinkel (mmhazewi@cs.ruu.nl). |
|---|
| 29 | | * Most Apple Event code provided by Steve Linberg (slinberg@crocker.com). |
|---|
| 30 | | * Carbon code adapted from works by Peter Ammon and Ron Anderson. |
|---|
| 31 | | * Much modernization and graphics/sound improvement done by pelpel. |
|---|
| 32 | | * |
|---|
| 33 | | * |
|---|
| 34 | | * Graphics code originally adapted from an extremely minimal subset of |
|---|
| 35 | | * "Sprite World II" <http://www.spriteworld.org/>, which is under the |
|---|
| 36 | | * following licence: |
|---|
| 37 | | * |
|---|
| 38 | | * This software is provided 'as-is', without any express or implied |
|---|
| 39 | | * warranty. In no event will the authors be held liable for any damages |
|---|
| 40 | | * arising from the use of this software. |
|---|
| 41 | | * |
|---|
| 42 | | * Permission is granted to anyone to use this software for any purpose, |
|---|
| 43 | | * including commercial applications, and to alter it and redistribute it |
|---|
| 44 | | * freely, subject to the following restrictions: |
|---|
| 45 | | * |
|---|
| 46 | | * 1. The origin of this software must not be misrepresented; you must not |
|---|
| 47 | | * claim that you wrote the original software. If you use this software |
|---|
| 48 | | * in a product, an acknowledgment in the product documentation would be |
|---|
| 49 | | * appreciated but is not required. |
|---|
| 50 | | * |
|---|
| 51 | | * 2. Altered source versions must be plainly marked as such, and must not be |
|---|
| 52 | | * misrepresented as being the original software. |
|---|
| 53 | | * |
|---|
| 54 | | * 3. This notice may not be removed or altered from any source |
|---|
| 55 | | * distribution. |
|---|
| 56 | | * (end of licence) |
|---|
| 57 | | * |
|---|
| 58 | | * |
|---|
| | 2 | * File: main-crb.c |
|---|
| | 3 | * Purpose: Provide support for OS X, version 10.3 and later. |
|---|
| | 4 | * |
|---|
| | 5 | * Copyright (c) 2003 pelpel |
|---|
| | 6 | * Copyright (c) 2003,2004,2005 Robert Ruehlmann |
|---|
| | 7 | * Copyright (c) 2007,2008 pete mack |
|---|
| | 8 | * Copyright (c) 2008 Rowan Beentje |
|---|
| | 9 | * |
|---|
| | 10 | * Some excerpts quoted under fair use from works by Ben Harrison, |
|---|
| | 11 | * Keith Randall, Peter Ammon, and Ron Anderson. |
|---|
| | 12 | * |
|---|
| | 13 | * This work is free software; you can redistribute it and/or modify it |
|---|
| | 14 | * under the terms of either: |
|---|
| | 15 | * |
|---|
| | 16 | * a) the GNU General Public License as published by the Free Software |
|---|
| | 17 | * Foundation, version 2, or |
|---|
| | 18 | * |
|---|
| | 19 | * b) the "Angband licence": |
|---|
| | 20 | * This software may be copied and distributed for educational, research, |
|---|
| | 21 | * and not for profit purposes provided that this copyright and statement |
|---|
| | 22 | * are included in all such copies. Other copyrights may also apply. |
|---|
| | 23 | */ |
|---|
| | 24 | #include "angband.h" |
|---|
| | 25 | |
|---|
| | 26 | |
|---|
| | 27 | /* |
|---|