summaryrefslogtreecommitdiff
path: root/apps/plugins (follow)
Commit message (Collapse)AuthorAge
* wolf3d: work on rebasing to GPL'd FM OPL emulatorwolf3dFranklin Wei2019-07-02
|
* Wolfenstein 3-D!Franklin Wei2019-07-02
| | | | | | | | | | | | | | | This is a port of wolf4sdl to Rockbox, via my SDL port. It *should* work on pretty much anything with a color display, but I have no idea since I haven't tested it. Place the original data files in /.rockbox/wolf3d/. Surprisingly even sound works (and doesn't sound like crap, either!). TODO (in no particular order): * decide whether or not to merge this (license issues) * flesh out manual entry (screenshots) Change-Id: I64c2ba035e0be7e2f49252f40640641416613439
* Boomshine Fix rb.touchscreen_set_mode()William Wilgus2019-06-17
| | | | Change-Id: I5bc835f1e006ed923cf0b7a3fcf91d4e357913ed
* sdl: add pointer to wiki for docsFranklin Wei2019-06-16
| | | | Change-Id: I6e87658351f32d3c40d9ca2b635ae2f654fdd3aa
* sdl: prevent simulator build from using pthreadsFranklin Wei2019-06-16
| | | | | | | | The simulator build will pull in the host SDL headers, which we can't filter out easily. A simple workaround is to simply remove the pthread include from our SDL. Change-Id: I09de0f2e85b891aa88958e21426ab450af516e76
* Fix IRAM overflow introduced in 7a8c9daf7efMarcin Bukat2019-05-31
| | | | | | | | | There is no easy way to determine iram available for test_mem plugin and PLUGIN_BUFFER_SIZE is definitely wrong. Restore previous IRAM buffer sizing Change-Id: Ia563efd46497438c111efc8d7d2bf65904ca9847
* Work around DX90 compile errorFranklin Wei2019-05-15
| | | | Change-Id: I80751a41d0711c52558ba198c22d1f012998302c
* puzzles: refactor rockbox frontendFranklin Wei2019-05-15
| | | | | | Cleaned up a bit of copy-pasted code and added some useful comments. Change-Id: I9a6f37acbeeda58b3ea8c65ee96230372400f323
* puzzles: resync with upstreamFranklin Wei2019-05-15
| | | | | | | | | This brings the puzzles source to upstream commit e2135d5. (I've made my own changes on top of that.) This brings in a couple bugfixes and a new solver for Dominosa. Change-Id: I11d46b43171787832330a5e2e0d2f353f36f727d
* blackjack: various fixesSebastian Leonhardt2019-02-01
| | | | | | | | | | - fix double down wins/looses too much money - fix splitting doubles lost/won amount of first split - fix insurance pays out too litle - fix splitting allows to overdraw account - fix insurance allows to overdraw account Change-Id: Ib58954d6b960fb2a78f5b4d29496974b7c58fb65
* lua rewrite boomshineWilliam Wilgus2019-01-24
| | | | | | | | | | | | | | rewrite the logic of boomshine to make it more difficult especially small screens rewrite of the game engine to make memory usage more consistent throught the level and decrease overall memory usage this also removes most of the stuttering in play Add test of device speed this should improve very slow devices but the threshold might still need tweaked Change-Id: I49f5269c69405f6b6060ab18f52c96e3f69ebb14
* Fix compile wanings in pacbox and invadrox introduced in d4942ccSolomon Peachy2019-01-02
| | | | Change-Id: I5d599d4b25207dcf03ed3f4be76d10907d36a99b
* Add Xuelin iHIFI 770/770C/800 supportSolomon Peachy2019-01-02
| | | | | | | Taken from the xvortex fork (Roman Stolyarov) Ported, rebased, and cleaned up by myself. Change-Id: I7b2bca2d29502f2e4544e42f3d122786dd4b7978
* Keymap improvements for the xDuoo X3Solomon Peachy2019-01-02
| | | | | | | | | | | | | - Synchronized with actual state of Vortex version in general. - Playback resume has been moved to the Power button. - Option button acts identically in most contexts: main menu on short press and quickscreen on long press. - Defined A-B repeat mode control buttons. - Level change action in chessbox has been moved to the volume down button. (Patch by Igor Poretsky) Change-Id: I48046ff123d2bccdc0d0c4ed8b088e2053aefa5e
* Fix lua helpers -- supress line markers in preproc source generation scriptsWilliam Wilgus2018-12-24
| | | | | | | | | | | | | In newer builds line markers prevent lua helper scripts from grabbing some inputs especially _bool This patch adds the -P switch Inhibit generation of linemarkers in the output from the preprocessor. This might be useful when running the preprocessor on something that is not C code, and will be sent to a program which might be confused by the linemarkers. Change-Id: I66c3b099729f6651300f9fcf4670533a20cc90c1
* Handle SYS_POWEROFF event in recorder and chessbox pluginsSolomon Peachy2018-12-23
| | | | | | Credit to Igor Poretsky Change-Id: I151d3511b9cee269190d87df7fa7dd355aaafc9b
* puzzles: resync with upstreamFranklin Wei2018-12-21
| | | | | | | | | | This brings the code to upstream commit 3ece3d6 (I've made my own Rockbox- specific changes on top of that). Changes include using C99 `bool' throughout, and minor logic fixes for some puzzles. Change-Id: Ie823e73ae49a8ee1de411d6d406df2ba835af541
* Lua Fix settings_helper for the gigaBeastSWilliam Wilgus2018-12-17
| | | | | | the gigabeatS has an embedded struct that needs to be parsed Change-Id: I88c9101afaaa95182f37ade1410cccb4fb768e33
* Lua add read/write access to global_status, global_settings, audio_current_trackWilliam Wilgus2018-12-16
| | | | | | | moved items to rb.system added read access to audio_current_track and audio_next_track Change-Id: Ia055b8cb3848e540067818f596ffd1058da057fb
* Pdbox hide cast-function-type fix overlapping memcpyWilliam Wilgus2018-12-08
| | | | | | | | dsoundfile.c used memcpy for overlapping memory regions switched to memmove Suppress the 160+ warnings for cast-function-type This plugin would require major work to fix these warnings Change-Id: I309d914839c1e70126a05b387863fd21613497a9
* mpegplayer fix warningsWilliam Wilgus2018-11-26
| | | | | | this should fix 'warning: cast between incompatible function types' Change-Id: I7d192b8953fd14511431cb50254900f566eb0574
* lua add LCD_DEFAULT_FG, fix 2-bit screen fg/bg inversionWilliam Wilgus2018-11-24
| | | | Change-Id: Ibe2bc6602ff27524a3b96d9523780acbfbf03c76
* Lua fix crash on arm devicesWilliam Wilgus2018-11-17
| | | | | | | | This is a seemingly random bug that only affects (as far as I can tell) arm devices it isn't actually random as code changes cause it to appear/disappear based on alignment Change-Id: I4cbc4370677959319f8589fe454e854c45623468
* Lua fix reader bug in lzioWilliam Wilgus2018-11-15
| | | | | | | | | When loading a file, Lua may call the reader function again after it returned end of input https://www.lua.org/bugs.html#5.1.5-2 Change-Id: Ic2f4d727705a0b8f48ce792f6a9f7af25a503037
* lua update to 5.1.5William Wilgus2018-11-11
| | | | | | | | Modify Rocklua towards upstream 5.1.5 Clean up some of the Rocklua implementation Change-Id: Iac722e827899cf84f5ca004ef7ae7ddce5f7fbbe
* Lua fix pixel-painter score saveWilliam Wilgus2018-11-05
| | | | | | | | pixel-painter was depending on the old readline code that returned nil for empty lines however empty lines should have returned an empty string Change-Id: Ic06ce920a7ab38e1fb8f7197d637e74ed9e35653
* Lua Boomshine Update with circles + levelsWilliam Wilgus2018-11-05
| | | | | | | | | added a few more levels and increased difficulty based on level Rliimage allows us to use circles in boomshine Optimized some of the code to exceed the speed of the original Change-Id: I68eb74f8b68fcdc8a9d022cd172374744425f15d
* Lua fix failure to read lines longer than LUAL_BUFFERSIZEWilliam Wilgus2018-11-02
| | | | | | | Readline didn't handle lines longer than LUAL_BUFFERSIZE it now reads these in chunks. Change-Id: Iffe12447e5441ff6b479ce3de1d36df64c276183
* Lua optimize combine and rework similar functionsWilliam Wilgus2018-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb.strncasecmp strcasecmp just exclude count -> rb.strncasecmp(s1, s2) rb.backlight_brightness_set backlight_set_brightness -- redundant rb.backlight_brightness_use_setting -> rb.backlight_brightness_set() rb.buttonlight_brightness_set buttonlight_set_brightness -- redundant rb.buttonlight_brightness_use_setting -> rb.buttonlight_brightness_set() rb.mixer_frequency rb.mixer_set_frequency -> mixer_frequency(freq) rb.mixer_get_frequency -> mixer_frequency rb.backlight_onoff rb.backlight_on -> rb.backlight_onoff(true) rb.backlight_off -> rb.backlight_onoff(false) rb.touchscreen_mode rb.touchscreen_set_mode -> rb.touchscreen_mode(mode) rb.touchscreen_get_mode -> rb.touchscreen_mode() rb.schedule_cpu_boost rb.trigger_cpu_boost -> rb.schedule_cpu_boost(true) rb.cancel_cpu_boost -> rb.schedule_cpu_boost(false) Includes rbcompat.lua for backwards compatibility if your script is broken by this change you simply add `require("rbcompat")` to the top for the old functionality Change-Id: Ibffd79a0d9be6d7d6a65cc4af5c0a1c6a0f3f94d
* lua fix rlimage FB_SCALARPACK()William Wilgus2018-11-02
| | | | | | FB_SCALARPACK(lua_tointeger()) was calling lua_tointeger 3x on color targets Change-Id: I7b3d73bba5dbc0aa4388b123de11410572fe67c5
* Lua fix dir string constants and pcm_play_pause & pcm_set_frequencyWilliam Wilgus2018-11-01
| | | | | | | String constants were already expanded in the first macro pcm functions were looking for stack position #1 when they needed stack pos #2 Change-Id: I7b4fb90953ab2395b77cbd550fdd257fafca6aae
* Lua Fix utf8encode, remove utf16 functionsWilliam Wilgus2018-11-01
| | | | | | | | | | The auto generated utf8/16 encode/decode functions did not work. Upon implementing them correctly I found that lua handles the utf-8 form properly but I could not get utf-16 to work without crashing maybe someone can come along later and implement utf-16 safe string functions but for now utf-16 is removed. Change-Id: I97a044e200dc27f683a45487cd93fce667c670c4
* Lua Add underscores in audio, pcm, playlist functionsWilliam Wilgus2018-10-31
| | | | | | | Lessen confusion for end users looking for the underlying function names in plugin.h Change-Id: I6662dc7bd9f22d83af372b3d3c5af53d9a1eac9a
* lua consolidate pcm_ functionsWilliam Wilgus2018-10-30
| | | | | | | | | | | | | | The way to call the pcm functions has changed rb.pcm("option", var) rb.pcm_set_frequency(freq) = becomes rb.pcm("pcmsetfrequency", freq) added pcm.lua to the includes for conversion to old functions if your script is broken by this change you simply add `require("pcm")` to the top for the old functionality added rb.pcm("calculatepeaks") Change-Id: I092057b0c0b5575e567862661f122da1ca2680e8
* Lua restore audio_set_recording_gain, audio_set_output,inputWilliam Wilgus2018-10-30
| | | | | | | | Did not mean to wipe out these function when I consolidated audio Made the regex for audio_ and playlist_ exact matches instead of fuzzy Change-Id: I7537d1b494afb114c8b6333ea177b1e482f6b672
* Lua update strftime.c from dietlibc sourceWilliam Wilgus2018-10-30
| | | | | | | | Adds %F -- %Y-%m-%d Fixes possible buffer overflow when writing final \0 Frees a bit of code on NON-RTC targets Change-Id: I1c2600a68ee88c6c99f411ae6646861578683f90
* Lua replace fscanfWilliam Wilgus2018-10-29
| | | | | | | | | | | | | | | | | | | | | | Rocklua was using the full fscanf implementation to simply read %ld for the file:read("*n") function wasting 1k on unneeded/unused functionality Instead, I've implemented a filetol function to duplicate it without the extra overhead using strtol which as an added bonus ERANGE errors now resolve to LONG_MIN and LONGMAX instead of integer overflow filetol() reads long int from an open file, skips preceding whitespaces returns -1 if error, 1 on success. *num set to LONG_MAX or LONG_MIN on overflow. If number of digits is > than LUAI_MAXNUMBER2STR filepointer will continue till the next non digit but buffer will stop being filled with characters. Preceding zero is ignored. Change-Id: Ia42d0f73c63a894625bca4581e9b7e1cc7387fd2
* Lua remove strncat.c & strcspn.cWilliam Wilgus2018-10-30
| | | | Change-Id: I08256f31e733d2674054e8e589d539d1396a0ee6
* Lua expand multiple screen supportWilliam Wilgus2018-10-30
| | | | | | | | | | Some of the lcd functions had support for multiple screens but this wasn't very safe since the screen number wasn't bounded within the screens[] array This adds support for all the lcd functions along with checking that screen# is bounded properly, adds around 600 bytes to devices with a remote screen devices without a remote screen lock to SCREEN_MAIN Change-Id: I618bbc7b3919c7b0ff375fb2d71949d7cab43c87
* Lua rliimage optimize rli_marshal, rli_copy, lcd_xxx_bitmapWilliam Wilgus2018-10-30
| | | | | | | | | | | | | | | | | | rli_marshal and rli_copy allow the use of a custom lua function instead of the built-ins, this custom function can signal to stop before the whole image is iterated. Originally it was checking for a return of 0 which was additional overhead for the built-in functions (which never stop early) as well. Now custom_transform sets the x & y deltas to 0 to indicate early exit removing an extra 'if' per cycle and return from all of the rli_transform functions The lcd_xxx_bitmap functions all require x, y, w, h, screen these calls have been consolidated into a single function get_bmp_bounds() Change-Id: I88de3149c58d1bfb40e9d1a91341fb86cbd63b51
* Lua remove gmtime.c use rb_plugin version insteadWilliam Wilgus2018-10-28
| | | | Change-Id: Ia6d47a13ec8ae407661a78c56513ac0c164216da
* Lua Rlimage metatableWilliam Wilgus2018-10-25
| | | | | | Put rliimage functions into the rb.image metatable instead of the rb. table Change-Id: Iecdc564c2ea9739656e2025b51bb5d5c62e3dbc1
* Lua Fix kbd_inputWilliam Wilgus2018-10-25
| | | | | | | | | While luaL_addstring() works perfectly fine for the final buffer once Lual_pushresult() is called kbd_input doesn't display a previous input properly since the buffer hasn't been finalized yet Change-Id: Ic50acaa8b7b17077dec8750dd2b6382624e8a549
* Lua cleanup kbd_input, gui_syncyesno_run, do_menuWilliam Wilgus2018-10-25
| | | | | | | Removes unneeded functions from kbd_input Consolidates message filling function for gui_syncyesno_run & do_menu Change-Id: If3c3cea3cbf37a8dc52983c0db174de6d54b35f8
* lua consolidate playlist_ functionsWilliam Wilgus2018-10-25
| | | | | | | | | | | | | | | | The way to call the playlist functions has changed rb.playlist("option", var) rb.playlist_add(filename) = becomes rb.playlist("add", filename) added playlist.lua to the includes for conversion to old functions if your script is broken by this change you simply add `require("playlist")` to the top for the old functionality added rb.playlist_tracks(dir, filename) to playlist.lua this will allow you to add all tracks in a playlist.m3u8 to a lua table Change-Id: I87fcc56be365d8495d214f069331b6ddbfbef1db
* lua add audio_play consolidate audio_ functionsWilliam Wilgus2018-10-24
| | | | | | | | | | | | | | | | | | | | | audio_play was removed from the rocklib I assume due to inconsistent behavior I've readded it with a check for audio paused which instead uses rewind/ff and then resumes audio the way to call the audio functions has changed as well rb.audio("option", var) so rb.audio_play(0, 0) becomes rb.audio("play", 0, 0) audio_audio_flush_and_reload_tracks becomes rb.audio("flushandreloadtracks") all functions except audio("getfilepos") return the previous (or still current) status added audio.lua to the includes for conversion to old functions if your script is broken by this change you simply add `require("audio")` to the top for the old functionality Change-Id: I364adf0c85d9c12b98cde29c26fbe5ee05b9d331
* Lua fix create_numbered_filenameWilliam Wilgus2018-10-24
| | | | | | | I didn't realize that some devices used the *num variable this fixes that oversight Change-Id: I2ecd6f475bebdd6ce745b360be3762a069bfc2b1
* Lua fix strip_extension and create_numbered_filenameWilliam Wilgus2018-10-24
| | | | | | | | | | | | | | | | | | | | Both of these functions modified the string in the lua stack per lua manual: 'When a C function receives a string argument from Lua, there are only two rules that it must observe: Not to pop the string from the stack while accessing it and never to modify the string' strip_extension will still work with old parameters and is thus backwards compatible strip_extension("filename") create_numbered_filename has changed slightly and IS NOT backwards compatible create_numbered_filename(path, prefix, suffix, [number]) (number defaults to -1) Change-Id: I34cf7e2f6f691f33d5ac2b2e995855a171fb99b3
* lua move rocklib_img to its own separate loadable moduleWilliam Wilgus2018-10-22
| | | | | | | | | allows rocklib_img to be excluded if needed stops rocklib_aux from generating redundant prototypes for lcd_mono_bitmap[_part] Change-Id: Ie208ad71ab5f9a7deb026dc01a5b0a0631a0d29c
* lua optimize current_path functionWilliam Wilgus2018-10-15
| | | | | | frees up around 500 bytes by using the builtin string functionality Change-Id: Icd4ec921d3fec339b8a4b7f80c9c63d51d4c101c