summaryrefslogtreecommitdiffstats
path: root/apps/plugins
AgeCommit message (Collapse)AuthorFilesLines
2020-08-25mikmod: Fix emulated fseek()Solomon Peachy1-1/+1
Was causing XM loader to fail Change-Id: I1dd1d87dd0d8587fae5f9db04a730fc42b625a11
2020-08-25xduoox3: Fix minesweeper plugin keymap.Solomon Peachy1-1/+1
(Broke in a654cecf8) Change-Id: I5b07e27aed12019e2b0a5078bf06812da2ddd598
2020-08-25xduoox3: More screenshots and button maps for pluginsSolomon Peachy1-1/+1
Change-Id: Ic494102f191da5e32faa61b0f4bcefadee198200
2020-08-19Open_plugin add ability to import opx shortcuts, bug fixWilliam Wilgus1-35/+64
shortcuts can be exported as .opx; now they can import as well if parameter is a valid file.. plugins with parameters are now hashed on the parameter path fix bug with empty parameters not overwriting last valid parameter Change-Id: I149519811f07cb4ba22b7113449e2f89f77f1eee
2020-08-17WIP open_plugins.rock viewerWilliam Wilgus5-0/+832
OP allows you to use Open With.. to call plugins with parameters called directly it acts as a shortcut list for plugins open_plugins.rock interfaces with the open_plugin core When opened directly it acts as a viewer for the plugin.dat file this allows you to edit the paths and parameters for core shortcuts as well as your added plugins If a plugin is supplied to the viewer it is added to the dat file If instead the plugin has previously been added then it is run with the parameters you previously supplied ----------------------------------------------------------------------------- Added export to .opx files this allows shortcuts to plugins with parameters to be called from the file browser Change-Id: Ib8b05a60b049fb1d5881031ca09a07e3307d375a
2020-08-17Add open_plugin to coreWilliam Wilgus2-23/+70
open_plugin allows arbitrary plugins to be called in hotkey and start screen replaces PictureFlow Integration shortcuts menu plays plugins now too rather than store paths and parameters in the settings that reside in memory instead entries in a file are searched by hash. after all, the plugin has to be loaded from disk anyways ---------------------------------------------------------------------------- shortcut_viewer.rock-- can now call plugins rather than taking you to them in the browser ----------------------------------------------------------------------------- Added a new option to menus: F_CB_ON_SELECT_ONLY instead of option callback every time a item is accessed F_CB_ON_SELECT_ONLY fires callback only when item is selected ----------------------------------------------------------------------------- Added manual entries ----------------------------------------------------------------------------- Change-Id: I078b57b1d2b4dd633c89212c1082fcbc1b516e6a
2020-08-16root_menu move tag cache init check to pictureflow pluginWilliam Wilgus1-0/+31
let pictureflow decide if the tag cache is ready instead of core Change-Id: I2ab9b375d773dbbc28ea41fbf7bb6fb361ace8fd
2020-08-15Battery_bench & announce_status stack fixWilliam Wilgus2-6/+4
had stack growing the wrong way Change-Id: I51bf14526f5239e77e15dc0ffd76ad3ed8bdcbc8
2020-08-11mikmod: Upgrade mikmod core from v3.2.0 to v3.3.11Solomon Peachy42-2852/+5082
* Get rid of the non-functional GT2 loader * Add the UMX loader * Add HQ mixer routines (and make it configurable) * Allow samplerate to be configured at run/playtime * Support >64KHz mixing/playback * Correctly restore non-boost status (The diff to upstream is much smaller now too!) Change-Id: Iaa4ac901ba9cd4123bb225656976e78271353a72
2020-08-09plugins: Make 'struct configdata' argument to the configfile helper constSolomon Peachy2-12/+12
So plugins can use const structures, possibly saving a little bit of RAM. Change-Id: I15b0ef20e7554caf5f6d1c12f6ab109ddf3c0dbd
2020-08-08plugins: properly build duke3d/quake/wolf3d on MIPS and HOSTED targetsSolomon Peachy1-1/+1
Change-Id: Ib8a9aa50c91dfc5d896c6f7491f3b30fca27479f
2020-08-02duke3d: allow playing with unofficial data filesFranklin Wei1-0/+3
I'd overlooked this code path earlier. In the case of an unknown GRP, the game would poll SDL for keyboard input, which it never received. Remove that, and just warn the user instead. Change-Id: Ibbabc0f8d43cb1276ed2fcfc3c6138517582e936
2020-08-02Battery_Bench use plugin buffer for thread stack, stop scrollingWilliam Wilgus1-15/+47
Increase stack by using the remaining plugin buffer Stops the scrolling message after user input Change-Id: I3497467143411e262b4de983e3daab3fbc5d08ce
2020-07-27kbd_helper fix yellowWilliam Wilgus1-1/+1
Change-Id: Ib54b36760678e88d3857ba70b0f4d1e1661bb0ad
2020-07-28kyb_helper small 'bug' fixWilliam Wilgus1-1/+1
Change-Id: Ia91a662262497c1a93ce8f26902aab5921ee7185
2020-07-28fix the red in be04c4bSolomon Peachy1-1/+1
Change-Id: I569561e5199c71a814b7f8118d63063f13958831
2020-07-27Voice TSR Plugin DemoWilliam Wilgus3-0/+848
allows user to run plugin in background that voices status messages grouping is now working it counts ; as the end of a group sleep timer remaining is not voiced if sleep timer is not active TODO manual entries Change-Id: I39e8500df6440c07d2a3347513c749d5e155d1cc
2020-07-26md5sum: clean up whitespaceFranklin Wei1-6/+6
Change-Id: I56781a8db29ac53df582dcc2faf6e5713ddcf186
2020-07-26Refactor 73b02a4.Franklin Wei1-13/+36
Moves basename to a separate function, and documents some of the pointer arithmetic it's doing. Change-Id: I6f65ad99f163c2b223929f2ce7805b8935df71c0
2020-07-26Make md5sum more verboseMoshe Piekarski1-3/+21
Solves FS#9539 Change-Id: I5278fa0fbb8347314ef6fb41e707b3832f1dd8cd
2020-07-24Fix two variable-set-but-not-used warningsSolomon Peachy1-0/+1
(found using -Os with gcc494 on the nano2g) Change-Id: If0deee3e3cde50e6bf5aff595bebc0f134dcc393
2020-07-25mpegplayer: Fix aliasing rules violation on multi-core targetsSolomon Peachy1-3/+5
As the PP series has no sense of cache coherency between its multiple cores, we need to ensure the vo_data structure does not share cachelines with anything else. This was previously done by defining a uint8_t array and trying to access it via typecasting hell, triggering a large pile of aliasing violation warnings on newer toolchains and/or higher optimization levels. Instead of violating the C spec in an undefined-behaviour-sort-of-way, create a union of the right size and alignment, and make one of its members the structure we care about. Voila, everyone is happy. Change-Id: Iad78f8132225437cd4aa10e6e5f6ae58ba996c19
2020-07-24plugins: HAVE_BACKLIGHT in the test pluginsSolomon Peachy5-8/+22
Change-Id: I97d17805ac7d37f10da6a29684102db97448e653
2020-07-24plugins: More HAVE_BACKLIGHT cleanupSolomon Peachy30-44/+149
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
2020-07-24plugins: Fix the builds for targets lacking HAVE_BACKLIGHTSolomon Peachy7-10/+40
Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
2020-07-24[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.Solomon Peachy54-702/+27
Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
2020-07-24[3/4] Completely remove HWCODEC supportSolomon Peachy19-1569/+10
'swcodec' is now always set (and recording_swcodec for recording-capable units) in feature.txt so the manual and language strings don't need to all be fixed up. Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
2020-07-24[2/4] get rid of HAVE_LCD_CHARCELLSSolomon Peachy20-982/+6
HAVE_LCD_BITMAP is now redundant. lcd_bitmap is always-on in features.txt so manual and lang strings don't have to change Change-Id: I08eeb20de48099ffc2dc23782711af368c2ec794
2020-07-24[1/4] Remove SH support and all archos targetsSolomon Peachy74-14510/+83
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
2020-07-22keyboard add ability to specify temporary custom layoutsWilliam Wilgus24-49/+142
rb core allows you to load custom keyboard layouts this patch adds the ability to load a keyboard layout in a buffer the custom layout is temporary and does not overwrite the current layout use like so: unsigned short kbd[64]; unsigned short *kbd_p = kbd; if (!kbd_create_layout("ABCD1234\n", kbd, sizeof(kbd))) kbd_p = NULL; rb->kbd_input(buf,sizeof(buf), kbd_p); Change-Id: I7be2bd4a1b4797a147fa70228a9749dc56ac052a
2020-07-19do_menu pass internal synclist reference to callbackWilliam Wilgus23-26/+95
keep running into the rigid nature of do_menu it isn't too bad when you don't need voice but once you do the fun awaits do_menu likes to talk on menu enter which is in a loop when you use do_menu I would like to move the processing to the callback TOO BAD you only get an action and the menu_item_ex struct you sent it when calling the function Change-Id: Iaefd0cc133435d675b7dd27a558c504d6ccb327a
2020-07-14puzzles: always reset input state before pause menuFranklin Wei1-3/+3
We were improperly conditioning the state reset with `do_pausemenu'. We should reset the input state no matter what. Change-Id: Iaafc59b95e9f1f053b57a34f0f28f7c672c0e327
2020-07-14puzzles: more verbose debug output in font loadingFranklin Wei1-3/+38
No functional changes. Change-Id: I7baa7bf37b3bdd57064c654a72d0e4e0d5600245
2020-07-14Pictureflow Bugfixes & Usability fixesWilliam Wilgus1-531/+1208
First I discovered a bug in the code to display the currently playing album from the WPS --on a NULL id3->albumartist field PF would crash now checks for a match in id3->albumartist and then id3->artist if neither exists then the search uses <untagged> ditto for album The album index feature (recently added) did not check for enough room in the buffer on restore --save and restore code cleaned up a bit moved all buffers to their own struct tracks with no title now show filename rather than <UNTAGGED> Reworked album search function album search was going quadriatic resulting in some outrageous index build times [40mins+ for 4000 albums] building now done in stages and duplicates removed at end *MUCH FASTER* Album art empty album art is no longer stored in the art cache PF will now allow you to cancel building album art without forcing a rebuild next run, it will continue searching for album art in the background album art is now updated in the background on each start as well tracklist now rolls over at the end artist_index is now discarded after album_index is created Cleaned up some of the myriad of global variables Added quit prompt for index building Added sanity checking for album_index loaded from disk Change-Id: I8494cb7abcb1ae8645c223fc3c11dc0ee749883a
2020-07-07puzzles: load cached fonts unconditionallyFranklin Wei1-4/+5
This works around an odd issue in Mines involving the zoom feature. The chain of events leading to it is rather convoluted: 1. No save game is found, so no fonts are loaded from disk. 2. A new game is started. 3. The user selects the "Zoom" option. 4. The allocation of the zoom framebuffer causes the malloc code to grab the audiobuffer. This causes all further font_load() calls to FAIL, due to buflib allocations no longer working. 5. The user goes back to the normal view and uncovers a square. 6. Font loading fails, causing the drawing code to fall back to the system font. 7. An unrelated bug (not yet tracked down) causes font_get(FONT_UI) to return a different font. 8. font_getstringsize() returns the right size of the "wrong" font, leading to centering issues upon rb_draw_text(). The real solution to this would be to fix font_get(), but this fix should prevent the issue from happening if Mines has been run and saved at least once before. Change-Id: Ib9ad51376eeb3ca1113a1f3786124b612db88cd7
2020-07-06puzzles: Follow cursor in zoom mode and general code cleanup.Franklin Wei48-25/+834
Frontends now have a way to retrieve the backend cursor position with some changes I've submitted upstream. With this information, we can now follow the cursor around in "interaction mode" while zoomed in, eliminating (most) need for mode switching. Also does some cleanup of the frontend code. Change-Id: I1ba118f67564a3baed95435f5619b73cfa3ae87a
2020-07-07plugin windows_lnk: fix missing return-on-errorSebastian Leonhardt1-0/+1
(found by peachy & clang's static analyzer) Change-Id: Idcc9b3bd0c3c1164892002b8f814d74b4a6b2a2d
2020-07-062048: use larger bitmaps on 96x96 screens (e.g. Clip Zip)Franklin Wei1-1/+1
Apparently the smallest bitmaps are hard to see. Change-Id: I0265ce4da15677f9c4c64457b1a1f849a0f3a7f8
2020-07-02puzzles: enhancements to mouse mode, zoom featureFranklin Wei1-65/+94
- zoom now remembers position between activations (but not when exiting the plugin) - key repeat enabled when panning - moving mouse out of frame while zoomed will pan - mouse can be moved diagonally Change-Id: I39380ef7f36238700b6baa54cac036832933df67
2020-06-30imageviewer: Fix potential null pointer dereferenceSolomon Peachy1-4/+6
(caught by clang-analyzer) Change-Id: Ie24b7cd75c5e9814007674925f33b1a321f1d06d
2020-06-30fractals: Clean up ARM asmSolomon Peachy1-4/+4
No functional change, just using modern syntax. Change-Id: I211bbcebd11da168c81dff4c409112d7a535b6ed
2020-06-27puzzles: clean up and document some voodooFranklin Wei1-17/+55
Change-Id: I13d987cc148f053778474e99c719cc8439ec53c0
2020-06-27puzzles: fix crash when loading a corrupt saveFranklin Wei1-2/+1
I misread the documentation here, thinking that the pointer would be set to *point to* a null byte, not to a null pointer itself. [1] [1]: https://www.chiark.greenend.org.uk/~sgtatham/puzzles/devel/midend.html#identify-game Change-Id: I9b76bba9b1611dfd8e05d076a69f7554b5b74c53
2020-06-27puzzles: refuse to draw non-ASCII charactersFranklin Wei1-3/+34
We had some issues in Keen with the arithmetic operators not being rendered properly. This is still a kludge (we should intelligently search the font) but is still less ugly than the garbage it was drawing before. Change-Id: I5b957c7371b659ea6d64847145f9913b2a892e48
2020-06-27puzzles: replace menu title kludge with more elegant solutionFranklin Wei1-19/+8
This hack has survived for far too long. Change-Id: Idca0b647bd6e77f2afcd9a538513a6b9aa970fc7
2020-06-27puzzles: disable software poweroff in all puzzlesFranklin Wei1-1/+8
We have a couple games like Untangle and mouse-mode games in which the software poweroff is very annoying. Change-Id: I554b89aecf8c7cc20c6c7f305be1b8807dc9283b
2020-06-27button: allow disabling software poweroffFranklin Wei2-0/+25
On some devices, the button driver allows a "software poweroff" by long- pressing a certain key. This behavior is inconvnient when that button needs to be held down for other purposes, such as moving the cursor in rockpaint or sgt-untangle. This patch allows selectively disabling the software poweroff (enabled by default) from both core and plugin code. Change-Id: I7580752888ae5c7c7c5eb1be5966e3d67f17d4b4
2020-06-27puzzles: allow secondary select in Rectangles and MapFranklin Wei1-3/+11
Change-Id: Ia32d41cd872140481e73b7565904fc196b7c5b01
2020-06-26Pictureflow Whitespace CleanupWilliam Wilgus1-11/+8
Change-Id: I7cda111a8d7a24cae31e3eeca1454480e27ebaaa
2020-06-26Pictureflow Fixes UniqBufWilliam Wilgus1-18/+22
rework of the unique name buffer shares 1/4 of the total buffer Change-Id: I17e46292ac880a082cb3f035e3c21abc318d8a31