Last change
on this file since 8098 was
8090,
checked in by youngk, 14 years ago
|
IT WORKS! Orxonox will now run properly with Cocoa - All window issues are fixed. Needs some cleanup, but only little. Rund App from Desktop.@reto: please review my changes. @fabian: watch and learn
|
File size:
520 bytes
|
Line | |
---|
1 | // |
---|
2 | // OrxonoxMac.mm |
---|
3 | // Orxonox |
---|
4 | // |
---|
5 | // Created by Kevin Jonas Young on 14.03.11. |
---|
6 | // Copyright 2011 -. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | #import "OrxonoxMac.h" |
---|
10 | |
---|
11 | static int argc_s = 0; |
---|
12 | static char** argv_s = 0; |
---|
13 | |
---|
14 | int main(int argc, char** argv) |
---|
15 | { |
---|
16 | argc_s = argc; |
---|
17 | argv_s = argv; |
---|
18 | |
---|
19 | int retVal = NSApplicationMain(argc, (const char**)argv); |
---|
20 | |
---|
21 | return retVal; |
---|
22 | } |
---|
23 | |
---|
24 | @implementation OrxonoxAppDelegate |
---|
25 | |
---|
26 | - (void)applicationDidFinishLaunching:(NSNotification *)notification |
---|
27 | { |
---|
28 | exit(main_mac(argc_s, argv_s)); |
---|
29 | } |
---|
30 | |
---|
31 | @end |
---|
Note: See
TracBrowser
for help on using the repository browser.