SDL-mirror/src
Sam Lantinga 5e1ffb1cc3 Allow overriding the app delegate on iOS
Vittorio G.  to Eric, Sam

Actually this is much simpler than i thought, I just had to specify a
class method to get the delegate name and then the category can
override that method!
I've attached the patch that enables this features: in my code i could
remove my custom main() and simply add

@implementation SDLUIKitDelegate (customDelegate)
+(NSString *)getAppDelegateClassName {
   return @"HedgewarsAppDelegate";
}
@end

I tested it and with the sdl demos it loads the normal
SDLUIKitDelegate, while in my code it loads my HedgewarsAppDelegate!
2011-04-05 09:50:25 -07:00
..
atomic Fixed bug 1122 (spinlock fails to compile with -march=armv4t) 2011-02-16 17:17:21 -08:00
audio Move variable declaration position to stick with C standart. 2011-04-03 18:24:27 +07:00
core Fixed permissions for C header files 2011-03-11 11:53:09 -08:00
cpuinfo Re-added the 3DNow! and AltiVec instruction support. 2011-02-22 21:44:36 -08:00
events Fixed compile error. 2011-03-29 03:05:26 -07:00
file Happy 2011! :) 2011-02-11 22:37:15 -08:00
haptic Fixed compiler warning 2011-02-20 13:56:57 -08:00
joystick Fixed bug #1121 (More than one device through SDL_JOYSTICK_DEVICE) 2011-02-16 04:51:13 -08:00
libm Happy 2011! :) 2011-02-11 22:37:15 -08:00
loadso Happy 2011! :) 2011-02-11 22:37:15 -08:00
main Happy 2011! :) 2011-02-11 22:37:15 -08:00
power Happy 2011! :) 2011-02-11 22:37:15 -08:00
render Added SDL_GetRenderer() 2011-04-04 09:29:13 -07:00
stdlib SDL 1.3 requires a 64-bit type for the platform. 2011-03-25 13:47:49 -07:00
thread Android defines linux, but doesn't have the gettid system call. 2011-03-25 13:48:48 -07:00
timer NDS update 2011-03-26 21:26:05 -07:00
video Allow overriding the app delegate on iOS 2011-04-05 09:50:25 -07:00
SDL.c Added a revision number for easy compile-time tests. 2011-02-20 10:42:51 -08:00
SDL_assert.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_assert_c.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_compat.c Fixed crash if the update rectangles are not pre-clipped. 2011-03-13 19:06:43 -07:00
SDL_error.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_error_c.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_fatal.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_fatal.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_hints.c This should match the header change. 2011-02-12 12:04:23 -08:00
SDL_log.c Added missing log debug function 2011-02-19 11:23:56 -08:00