summaryrefslogtreecommitdiff
path: root/apps/plugins/superdom.c (follow)
Commit message (Collapse)AuthorAge
* Superdom: Silence warning.Michael Giacomelli2014-09-14
| | | | Change-Id: Idec8c1a9defb19ebd753c2609b5d4207581c9248
* Superdom: rewrote help textFranklin Wei2014-09-14
| | | | | | Change-Id: I54d5ee920b03f24faee5a6bf53ca56b27bbdc6c8 Reviewed-on: http://gerrit.rockbox.org/945 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* Superdom: some AI improvements and other minor changesFranklin Wei2014-09-14
| | | | | | Change-Id: Ia2756a7263ec09b78714273af0f604fc9cdb50eb Reviewed-on: http://gerrit.rockbox.org/944 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* Superdom: added option for persistent unitsFranklin Wei2014-09-14
| | | | | | Change-Id: I4c28f3c567ed435ba7aee36c8b54c76fc75e12aa Reviewed-on: http://gerrit.rockbox.org/943 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* [WIP] Superdom: AI can now use nukesFranklin Wei2014-09-14
| | | | | | Change-Id: Iff5093b0edb4c065096d41c36d33bb2126063cf6 Reviewed-on: http://gerrit.rockbox.org/942 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* [WIP] Superdom: game improvementsFranklin Wei2014-09-14
| | | | | | | | | | | | - macro-ify board dimensions, surrender thresholds - make AI skill level adjustable - let AI buy nukes in hard mode (still can't use them yet) - make nukes persistent (stay after an invasion) - make AI treat nukes with priority Change-Id: I1add6250766810787080624bd9e36026df449509 Reviewed-on: http://gerrit.rockbox.org/940 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* Superdom: code cleanupFranklin Wei2014-09-14
| | | | | | Change-Id: I3285238cfc098546307862f7d2e51e3b8e456a98 Reviewed-on: http://gerrit.rockbox.org/931 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* Superdom: whitespace cleanupFranklin Wei2014-09-14
| | | | | | Change-Id: Iab7aa68c4ed34809e1e9200cba9ee5bc0a09be8e Reviewed-on: http://gerrit.rockbox.org/930 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* zen/zenxfi/zenxfistyle/zenmozaic: implement plugin keymaps and enable pluginsAmaury Pouly2014-07-17
| | | | | | Plugins on the ZEN/ZEN X-Fi require to increase the plugin buffer size. Change-Id: If4651c87b402060faa24530985c6e871379c8ea1
* Introduce plugin keymaps for the Sony NWZ SeriesNils Stec2014-06-30
| | | | | | Change-Id: I46b8766bd44118bce4931b7ee71815ae5f51cb2e Reviewed-on: http://gerrit.rockbox.org/879 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* lcd-24bit: Introduce a 24-bit mid-level LCD driverThomas Martitz2014-06-21
| | | | | | | | | | | | | | | | | With LCD driver all calculation will be performed on RGB888 and the hardware/OS can display from our 24bit framebuffer. It is not yet as performance optimized as the existing drivers but should be good enough.The vast number of small changes is due to the fact that fb_data can be a struct type now, while most of the code expected a scalar type. lcd-as-memframe ASM code does not work with 24bit currently so the with 24bit it enforces the generic C code. All plugins are ported over. Except for rockpaint. It uses so much memory that it wouldnt fit into the 512k plugin buffer anymore (patches welcome). Change-Id: Ibb1964545028ce0d8ff9833ccc3ab66be3ee0754
* Separate keymaps for YH-820 and YH-920/925Sebastian Leonhardt2014-05-24
| | | | | | | | | | | | | | | Although both players basically have the same keys, the differences in the layout is rather big, so I think both deserve their own keymaps. (On the yh820 the FFWD/PLAY/REW buttons are located above the direction keys, on the yh920 at the side of the player. Furthermore the yh920/925 has a REC switch, whereas yh820 has a push button.) Change-Id: I0e62a1b101c387646c0bdb07ea142d9d2430ca15 Reviewed-on: http://gerrit.rockbox.org/814 Reviewed-by: Szymon Dziok <b0hoon@o2.pl>
* Complete Plugin Keymaps for Creative Zen X-Fi3David Jilke2014-04-06
| | | | | | | | | | This patch completes the plugin keymaps for the Zen X-Fi3 and enables those plugins for compilation. One key was changed in "button-target.h" for compatibility with Rockboy. This also caused the changes to "keymap-zenxfi3.c", to keep the stock functionality (no further changes in here). Change-Id: Ic222faf89e9a9a2332a49d6e532cedb6eb16d3d7 Reviewed-on: http://gerrit.rockbox.org/762 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* scroll_engine: Rename scroll_stop* functions to be more consistent with the ↵Thomas Martitz2013-12-14
| | | | | | lcd api. Change-Id: I8ada10b96bfb628cca0331689e8b936ae47c7e1c
* hm801: Add support for plugins.Andrew Ryabinin2012-04-19
| | | | Change-Id: I81654db87d38324d8680a56bcdb7e9922ee5b619
* hm60x: Add support for plugins.Andrew Ryabinin2012-04-19
| | | | Change-Id: I4cad0881c8249f163680a280f70d1a0b36248da8
* superdom plugin: make functions/variables static where possibleBertrik Sikken2012-04-14
| | | | Change-Id: Ibe0d8daacd9b7b9da506b3efe46092b9433d52ef
* Initial commit of the Samsung YP-R0 port.Thomas Martitz2011-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This port is a hybrid native/RaaA port. It runs on a embedded linux system, but is the only application. It therefore can implement lots of stuff that native targets also implement, while leveraging the underlying linux kernel. The port is quite advanced. User interface, audio playback, plugins work mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page). Included in utils/ypr0tools are scripts and programs required to generate a patched firmware. The patched firmware has the rootfs modified to load Rockbox. It includes a early/safe USB mode. This port needs a new toolchain, one that includes glibc headers and libraries. rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may also work. Most of the initial effort is done by Lorenzo Miori and others (on ABI), including reverse engineering and patching of the original firmware, initial drivers, and more. Big thanks to you. Flyspray: FS#12348 Author: Lorenzo Miori, myself Merry christmas to ypr0 owners! :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
* Sandisk Sansa Connect port (FS #12363)Tomasz Moń2011-11-16
| | | | | | | | Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
* fuze+: add superdom keymapAmaury Pouly2011-10-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30685 a1c6a512-1295-4272-9138-f99709370657
* HD300 - plugins keymapsMarcin Bukat2010-11-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28712 a1c6a512-1295-4272-9138-f99709370657
* Commit a few more GoGear HDD6330 keymaps.Robert Menes2010-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28445 a1c6a512-1295-4272-9138-f99709370657
* plugins: use lcd_putsf/lcd_putsxyfRafaël Carré2010-08-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 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
* use int instead of enum.Teruaki Kawashima2010-06-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26916 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
* some changes to use of display_text.Teruaki Kawashima2010-02-22
| | | | | | | | | | * add parameter, wait_key to display_text(). - set this true to wait button press after all words is displayed. * use ARRAYLEN macro instead of #define WORDS * add macro to indicate end of style array. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24846 a1c6a512-1295-4272-9138-f99709370657
* Packard Bell Vibe 500: More plugin keymaps (second portion).Szymon Dziok2010-02-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24634 a1c6a512-1295-4272-9138-f99709370657
* superdom: check range of input in get_number(). stop scrolling text when ↵Teruaki Kawashima2010-02-05
| | | | | | | | leave the screen. don't exit start menu by pressing Left. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24522 a1c6a512-1295-4272-9138-f99709370657
* superdom: fix bug that "Human starting factories" setting is ignored (part ↵Teruaki Kawashima2010-02-04
| | | | | | | | of FS#10964). humanstartfarms was used where humanstartinds shuold be used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24509 a1c6a512-1295-4272-9138-f99709370657
* Cowon D2: Rename COWOND2_PAD -> COWON_D2_PAD to match macro used in manual, andTomer Shalev2009-12-15
| | | | | | | to target naming conventions in general git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24010 a1c6a512-1295-4272-9138-f99709370657
* Correct checking return value of open in plugins.Teruaki Kawashima2009-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
* Another round of plugin keymaps for the Philips GoGear SA9200.Robert Menes2009-12-03
| | | | | | | Just a few more to go... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23838 a1c6a512-1295-4272-9138-f99709370657
* Fix STRIDE macro for multiscreen and add stride support for picture lib.Karl Kurbjun2009-09-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
* pegbox, sliding_puzzle, sokoban, solitaire, sudoku, and superdom: Add ↵Karl Kurbjun2009-08-31
| | | | | | support for vertical strides git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22573 a1c6a512-1295-4272-9138-f99709370657
* Correct superdom conflictKarl Kurbjun2009-08-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22547 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
* Commit FS#10251. Plugins for the YH-820, YH-920, and YH-925 by Jens Erdmann ↵Michael Giacomelli2009-08-04
| | | | | | with improvements and bitmap graphics by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22149 a1c6a512-1295-4272-9138-f99709370657
* Superdom: introduce new enum for value to be returned in many places instead ↵Teruaki Kawashima2009-08-02
| | | | | | | | | of mix of PLUGIN_USB_CONNECTED and numbers. improve number input screen. check size of labels and use sysfont if they are too large. put them at center of each box. use simplelist to show inventory(part of FS #7593). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22113 a1c6a512-1295-4272-9138-f99709370657
* Superdom: Add support for 640x480 and 480x640 screens, simplify screen defines.Karl Kurbjun2009-07-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22009 a1c6a512-1295-4272-9138-f99709370657
* use lib display text to display help messages (FS#10099).Teruaki Kawashima2009-07-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21861 a1c6a512-1295-4272-9138-f99709370657
* FS#9971 superdom fixes from Teruaki Kawashima.Andrew Mahone2009-05-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20959 a1c6a512-1295-4272-9138-f99709370657
* FS#10075 - FUZE: QUIT Plugin by selecting BUTTON_HOME by Johannes Schwarz. ↵Thomas Martitz2009-04-10
| | | | | | Updates the plugin keymap to use Long Home to exit plugins to be more inline with the core keymap. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20680 a1c6a512-1295-4272-9138-f99709370657
* Enable plugins on the Onda VX747Maurus Cuelenaere2009-04-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20647 a1c6a512-1295-4272-9138-f99709370657
* Accept the first patch at FS#9953 - Add Playback Control to more plugins, ↵Thomas Martitz2009-02-26
| | | | | | by Joshua Simmons git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20111 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
* Commit FS#9617 - Keymaps for Plugins fuze by Thomas Martitz.Michael Giacomelli2009-01-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19673 a1c6a512-1295-4272-9138-f99709370657
* add yields in superdom, patch from FS#7528Andrew Mahone2008-12-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19389 a1c6a512-1295-4272-9138-f99709370657