summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/rockdoom.c (follow)
Commit message (Collapse)AuthorAge
* FS#12273 - use buflib for font storage. thanks to the testers :)Jonathan Gordon2011-09-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30589 a1c6a512-1295-4272-9138-f99709370657
* Fix 'unused-but-set-variable' warnings (doom, lua)Rafaël Carré2011-06-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30008 a1c6a512-1295-4272-9138-f99709370657
* * Rename backlight_force_on to backlight_ignore_timeout to make it clear ↵Teruaki Kawashima2011-01-24
| | | | | | | | | | | what the function does. * Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp. No functional change except lamp. See aslo FS#9883. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
* Plugins: modify IRAM copying codeRafaël Carré2010-08-30
| | | | | | | | | Move to plugin_crt0.c, plugins don't need PLUGIN_IRAM_* macros anymore IRAM is no longered zeroed before copying (as it is at the same address than BSS) -> Fix FS#11581 Use cpucache_invalidate() (and not cpucache_flush), needed for self-modifying code on cached IRAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27948 a1c6a512-1295-4272-9138-f99709370657
* Second try: Introduce plugin_crt0.c that every plugin links.Thomas Martitz2010-08-24
| | | | | | | | | | | | | It handles exit() properly, calling the handler also when the plugin returns normally (also make 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 rb->default_event_handler_ex() 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@27873 a1c6a512-1295-4272-9138-f99709370657
* Revert "Introduce plugin_crt0.c that every plugin links."Thomas Martitz2010-08-23
| | | | | | Too much errors and no time to fix them now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
* Introduce plugin_crt0.c that every plugin links.Thomas Martitz2010-08-23
| | | | | | | | | | | | | 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
* Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz2010-06-21
| | | | | | | | | | | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
* Fix disastrous variable shadowing, change casts to unsigned in (cygwin ↵Thomas Martitz2010-05-07
| | | | | | | | doesn't like mode_t there, and unsigned int should be equally correct) and check the correct bitmask in sim_open(). Should repair filesystem accesses on the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25881 a1c6a512-1295-4272-9138-f99709370657
* Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz2010-05-06
| | | | | | the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
* Accept FS #10271 by Christian Beier: Automatically disable voice upon ↵Karl Kurbjun2009-12-18
| | | | | | rockdoom startup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24063 a1c6a512-1295-4272-9138-f99709370657
* Remove private memcpy wrapper that is no longer needed since r19847 and may ↵Nils Wallménius2009-10-14
| | | | | | cause issues with newer gcc versions, inspired by patch in FS#10676 by Duy Nguyen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23178 a1c6a512-1295-4272-9138-f99709370657
* Make the formatter functions used by the settings return a pointer to avoid ↵Nils Wallménius2009-08-20
| | | | | | usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
* Doom: re-add the missing modulus operation I removed in r22097Maurus Cuelenaere2009-08-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22098 a1c6a512-1295-4272-9138-f99709370657
* Doom: prevent division by zeroMaurus Cuelenaere2009-08-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22097 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#10094 by Teruaki Kawashima:Jonathan Gordon2009-06-16
| | | | | | | Replace the old menu API with the "new" one (a very long time overdue so huge thanks for the work.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21306 a1c6a512-1295-4272-9138-f99709370657
* loader-initialized global plugin API:Andrew Mahone2009-01-16
| | | | | | | | | | | | | | | | | struct plugin_api *rb is declared in PLUGIN_HEADER, and pointed to by __header.api the loader uses this pointer to initialize rb before calling entry_point entry_point is no longer passed a pointer to the plugin API all plugins, and pluginlib functions, are modified to refer to the global rb pluginlib functions which only served to copy the API pointer are removed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19776 a1c6a512-1295-4272-9138-f99709370657
* revert plugin_api part of r18830, as this was the wrong solution for thoseFrank Gevaerts2008-10-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18831 a1c6a512-1295-4272-9138-f99709370657
* code police : fix some multiply defined variablesFrank Gevaerts2008-10-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18830 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Plugin parameters should be const.Steve Bavin2008-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
* m:robe 100: a few button defines and other greyscale related changesRobert Kukla2008-04-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17030 a1c6a512-1295-4272-9138-f99709370657
* Doom: Keep the light on during gameplay.Jens Arnold2008-01-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16004 a1c6a512-1295-4272-9138-f99709370657
* Hopefully the last fix for crosscompilation of sims with mingw32.Nicolas Pennequin2007-10-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15048 a1c6a512-1295-4272-9138-f99709370657
* Doom: * Fix voicing numerous options as 'yes'. voice_id is an id, not a ↵Jens Arnold2007-10-02
| | | | | | pointer. *Fix struct menu_item <-> struct opt_items messup (caused no problems but still...). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14960 a1c6a512-1295-4272-9138-f99709370657
* Makes apps and plugins interract with directories using a posix-like api ↵Kevin Ferrare2007-07-20
| | | | | | instead of calling dircache / simulator functions (no additionnal layer added, only a cosmetic change) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13943 a1c6a512-1295-4272-9138-f99709370657
* Some fixes to doom dehacked loading - make embedded dehacked files actually ↵Karl Kurbjun2007-06-03
| | | | | | load, fix end of file detection in the string loader, fix ammo changes, fix bex code pointers. Also added the * flag to sscanf - still only tested against rockdoom sscanf calls. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13547 a1c6a512-1295-4272-9138-f99709370657
* Move the old api out of the core and into the plugin lib.Jonathan Gordon2007-05-08
| | | | | | | ew plugins shuold use the new api and not this one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13358 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold2007-03-16
| | | | | | 500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
* Make our Doom plugin see the Doom wad we provide and list "Freedoom" as Paul Louden2007-02-17
| | | | | | | its own entry in the supported game list. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12353 a1c6a512-1295-4272-9138-f99709370657
* Doom for the Gigabeat and some code reductionKarl Kurbjun2007-01-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12051 a1c6a512-1295-4272-9138-f99709370657
* Dehacked and BEX support for Doom - currently only supports a DEHACKED file ↵Karl Kurbjun2006-12-13
| | | | | | in a WAD (not as a standalone file yet). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11738 a1c6a512-1295-4272-9138-f99709370657
* FS#6357, patch 1: let iramcopy and bss share the same space in codecs andTomasz Malesinski2006-11-26
| | | | | | | | | | plugins. Currently, in case of plugins using IRAM bss is cleared twice, once in the loader, once in PLUGIN_IRAM_INIT. For codecs, bss is cleared only during codec initialization. Also, removed double variables in codecs storing a pointer to codec_api. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11606 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC/IRAM: Save voice IRAM when a plugin initializes its IRAM. Defines ↵Michael Sevakis2006-11-18
| | | | | | two macros for declaring and initializing IRAM. Plugins should use these instead. See mp3_encoder, doom, etc. for details. Further tweaks in buffer restoration after other use. Hiding of some interfaces that should only be used by buffer management. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11544 a1c6a512-1295-4272-9138-f99709370657
* Don't need to remove the backdrop for all plugins - leave it up for some.Karl Kurbjun2006-11-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11526 a1c6a512-1295-4272-9138-f99709370657
* Deboost under all exits for rockdoom thanks to patch 5851 by David DentKarl Kurbjun2006-10-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11100 a1c6a512-1295-4272-9138-f99709370657
* Fix the menu start for rockdoomKarl Kurbjun2006-06-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10097 a1c6a512-1295-4272-9138-f99709370657
* Stop playback before starting to use IRAMDave Chapman2006-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9947 a1c6a512-1295-4272-9138-f99709370657
* Better video update, add options to startup menu, change default screensizeKarl Kurbjun2006-04-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9754 a1c6a512-1295-4272-9138-f99709370657
* Add in error return if appropriate.Karl Kurbjun2006-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9702 a1c6a512-1295-4272-9138-f99709370657
* Changed the way the addons and demos menus are displayed and built. Should ↵Karl Kurbjun2006-04-17
| | | | | | be a good setup for adding multiple wad files as addons. Need to add some status feedback to let the user know what has been selected previously. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9701 a1c6a512-1295-4272-9138-f99709370657
* Finally add support for unlimited number of addons and demos. Also cleaned ↵Karl Kurbjun2006-04-17
| | | | | | up the code and made a general function to handle the addons and demos. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9700 a1c6a512-1295-4272-9138-f99709370657
* Some code cleanup. Adds Always run to configuration options.Karl Kurbjun2006-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9697 a1c6a512-1295-4272-9138-f99709370657
* Slight code cleanups, fixed sound parameter - now it saves. Old ↵Karl Kurbjun2006-04-15
| | | | | | configurations will be reset. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9682 a1c6a512-1295-4272-9138-f99709370657
* Start of profiling support for doom.Karl Kurbjun2006-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9667 a1c6a512-1295-4272-9138-f99709370657
* use #ifdef x instead of #if defined(x)Christian Gmeiner2006-04-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9581 a1c6a512-1295-4272-9138-f99709370657
* HAVE_ADJUSTABLE_CPU_FREQ isn't defined for simulators, so we don't have to ↵Christian Gmeiner2006-04-09
| | | | | | check for simulator builds before using cpu_boost() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9580 a1c6a512-1295-4272-9138-f99709370657
* Fix up configurable keys, edit exit string, more work needs to be done on ↵Karl Kurbjun2006-04-04
| | | | | | menu keys git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9506 a1c6a512-1295-4272-9138-f99709370657
* Add configurable keys to Doom, enter, escape and run still need to be ↵Karl Kurbjun2006-04-04
| | | | | | handled. More game keys need to be added to the options. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9494 a1c6a512-1295-4272-9138-f99709370657
* Updates doom menu w/ new graphics, now requires rockdoom.wad: ↵Karl Kurbjun2006-04-03
| | | | | | http://alamode.mines.edu/~kkurbjun/rockdoom.wad git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9468 a1c6a512-1295-4272-9138-f99709370657