1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/pacbox
Thomas Martitz abdc5935be Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also it makes exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 16:56:49 +00:00
..
arcade.c PacBox: Premultiply sound prom data on load rather than during emulation. Use 16-bit data for 'raw' output instead of int. 2010-07-01 03:57:37 +00:00
arcade.h PacBox: Premultiply sound prom data on load rather than during emulation. Use 16-bit data for 'raw' output instead of int. 2010-07-01 03:57:37 +00:00
hardware.c Enable game sounds in PacBox. Sound is OFF by default but can be enabled from the menu. Enable a function for SWCODEC in the middle of the plugin API, so plugins must be made incompatible (full update). 2010-07-01 00:26:01 +00:00
hardware.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
pacbox.c Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
pacbox.h Enable game sounds in PacBox. Sound is OFF by default but can be enabled from the menu. Enable a function for SWCODEC in the middle of the plugin API, so plugins must be made incompatible (full update). 2010-07-01 00:26:01 +00:00
pacbox.make change dependencies in make files: 2010-01-17 13:03:10 +00:00
pacbox_arm.S FS#11335 by me: make ARM assembly functions thumb-friendly 2010-06-11 04:41:36 +00:00
pacbox_cf.S Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
pacbox_lcd.c Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). 2010-06-21 16:53:00 +00:00
pacbox_lcd.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
readme.txt pacbox - a Pacman arcade machine emulator. Currently working for all colour targets and the iriver H1x0. Requires the Pacman arcade machine ROMs in /.rockbox/pacman/ 2006-03-11 15:44:35 +00:00
SOURCES Enable game sounds in PacBox. Sound is OFF by default but can be enabled from the menu. Enable a function for SWCODEC in the middle of the plugin API, so plugins must be made incompatible (full update). 2010-07-01 00:26:01 +00:00
wsg3.c PacBox: Premultiply sound prom data on load rather than during emulation. Use 16-bit data for 'raw' output instead of int. 2010-07-01 03:57:37 +00:00
wsg3.h PacBox: Premultiply sound prom data on load rather than during emulation. Use 16-bit data for 'raw' output instead of int. 2010-07-01 03:57:37 +00:00
z80.c Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
z80.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
z80_internal.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00

Pacbox is based on PIE - the Pacman Instructional Emulator written by
Alessandro Scotti.  PIE is a Pacman arcade machine emulator licensed
under the GNU GPL and is available from http://www.ascotti.org/

PIE is a Windows application written in C++ - all the Windows-specific
code was stripped out and the emulator converted to C for use in
Rockbox.

The version of PIE used as the basis of the port was v1.11


Dave Chapman
March 2006