README.NDS
author Ozkan Sezer <sezeroz@gmail.com>
Fri, 22 Jun 2018 21:03:40 +0300
branchSDL-1.2
changeset 12026 67f391c74aee
parent 3976 8582c6a5ca16
permissions -rw-r--r--
SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps (bug #4114)

CPS stuff are deprecated and emit warnings at runtime, e.g.:

warning: CPSGetCurrentProcess(): This call is deprecated and should not be called anymore
warning: CPSSetForegroundOperationState() (as above)
warning: capture_display; Captured mirror master 0x350000c1 (unit 1) on behalf of slave 0x042716c0 (unit 0)

http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-April/055749.html
suggests doing something like:

ProcessSerialNumber psn = { 0, kCurrentProcess};
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
SetFrontProcess (&psn);

And SetFrontProcess() is deprecated in 10.9. Processes.h suggests
[[NSApplication sharedApplication] activateIgnoringOtherApps: YES]
to make one's own application frontmost.
     1 The SDL port to the Nintendo DS
     2 
     3 This port uses the devKitPro toolchain, available from:
     4 http://www.devkitpro.org
     5 
     6 Precompiled tools for cross-compiling on Linux are available from:
     7 http://www.libsdl.org/extras/nds/devkitPro-20070503-linux.tar.gz
     8 
     9 todo:
    10 add ds console specific features/optimizations
    11 mouse/keyboard support
    12 dual screen support
    13 
    14 build with:
    15 cp include/SDL_config_nds.h include/SDL_config.h
    16 make -f Makefile.ds
    17 
    18 included is an arm9/arm7 template to allow for sound streaming support.
    19 
    20 Enjoy, fix the source and share :)
    21 Troy Davis(GPF)
    22 http://gpf.dcemu.co.uk/