Mercurial > sdl-ios-xcode
annotate BUGS @ 3422:ec4db979dddb
Fixed bug #847
Roger Willcocks 2009-10-25 08:45:37 PDT
appDidFinishLaunching is triggered before all the setup's complete. The easiest
fix is to arrange for another event to be sent when it's really ready, and run
SDL_main from there. Ref.
http://blog.rightsprite.com/2008/11/iphone-applicationdidfinishlaunching.html
SDL-1.3.0-4563/src/video/uikit/SDL_uikitappdelegate.m:
- (void)postFinishLaunch {
/* run the user's application, passing argc and argv */
int exit_status = SDL_main(forward_argc, forward_argv);
/* free the memory we used to hold copies of argc and argv */
int i;
for (i=0; i<forward_argc; i++) {
free(forward_argv[i]);
}
free(forward_argv);
/* exit, passing the return status from the user's application */
exit(exit_status);
}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
/* Set working directory to resource path */
[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle
mainBundle] resourcePath]];
[self performSelector:@selector(postFinishLaunch) withObject:nil
afterDelay:0.0];
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 02 Nov 2009 07:55:42 +0000 |
parents | b8bee470f737 |
children |
rev | line source |
---|---|
0 | 1 |
2091
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
2 Bugs are now managed in the SDL bug tracker, here: |
0 | 3 |
2091
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
4 http://bugzilla.libsdl.org/ |
0 | 5 |
2091
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
6 You may report bugs there, and search to see if a given issue has already |
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
7 been reported, discussed, and maybe even fixed. |
0 | 8 |
9 | |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
10 |
2091
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
11 You may also find help at the SDL mailing list. Subscription information: |
0 | 12 |
2091
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
13 http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
250
74a8f672f2f8
Added support for building SDL for EPOC/SymbianOS 6.0 (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
14 |
2091
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
15 Bug reports are welcome here, but we really appreciate if you use Bugzilla, as |
b8bee470f737
Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Ryan C. Gordon <icculus@icculus.org>
parents:
2062
diff
changeset
|
16 bugs discussed on the mailing list may be forgotten or missed. |
0 | 17 |
27
a7e598a8d8be
The keyboard modifiers are not set to the correct state on X11 startup.
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
18 |