summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-07-12wolf3d: allow entering in-game jukebox by holding fire buttonFranklin Wei1-1/+7
Change-Id: I8936178191e682b70c64ef6ae04d6636e5cf3521
2019-07-11lua reduce heap allocated buffer sizes, organize luaconf.hWilliam Wilgus1-141/+194
Change-Id: Ib9e568ea73a01474facd57cc155e62fa3dc093f7
2019-07-11lua late bound cfunction tablesWilliam Wilgus1-0/+132
We have quite a bit of ram tied up in lua with our c libraries I was searching for a way to free up some of this when I came across read only tables in e-lua but that involved a lot of patching through the source Instead I came up with this.. it frees about 15k ram without much slowdown in code execution since after a function gets called it is automatically added to the table If you have a performance issue you can call the bind method to bind a specific function or the whole table in one shot for instance rb table rb("lcd_clear") -- binds/returns function rb.lcd_clear() rb(nil) -- binds every function in rb table + removes latebind metatable .. -- added pairs and ipairs code from lua 5.2 -- cleaned up code + made more seamless existing fields are now saved rather than overwritten when table is bound Change-Id: I1c20e76b736c032dedc727d2e58928641e40191d
2019-07-11lua inbinary stringsWilliam Wilgus10-25/+88
Allows saving of ram by reusing strings already stored in the binary and storing a pointer instead of malloc and copy to get them inside the lua state Saves about 1.5K overall Derivative of work by bogdanm RAM optimizations: pseudo RO strings, functions in Flash https://github.com/elua/elua/commit/d54659b5723bcd2b1e3900362398c72c18a9aa0b Change-Id: I21d6dcfa32523877efd9f70fb0f88f2a02872649
2019-07-10wolf3d: increase default viewport sizeFranklin Wei1-1/+1
Makes things a little bigger by default (but not maximized). Change-Id: I9e4ae725e22458f1e5140a560ff242159ef582d7
2019-07-10wolf3d: write configs to /.rockbox/wolf3d instead of /.wolf4sdlFranklin Wei2-2/+2
Let's keep things neat. Change-Id: I995b2c4949d3adbbd7ea4ef361f0712aa222612e
2019-07-10tagtree.c->loadroot() guard against overflowWilliam Wilgus1-0/+3
forum user chris_s noted an possible unhandled cache overflow Change-Id: Ia79399d6581ef6b635578896519fda8126c731d7
2019-07-10Fix Truncation warning cpufreq-linux.c->cpufreq_available_governorsWilliam Wilgus1-1/+1
limit cpu identifer to 0xFFFF Change-Id: I6fb170aa7ce32b7b5c0366bbd689878bb5069be8
2019-07-10Fix possible truncation playlist_catalog.c->catalog_add_to_a_playlistWilliam Wilgus1-3/+3
Change-Id: Ib142b07916ccca044674e5cabec379316c07e9d9
2019-07-10Fix truncation warning color_picker.c->draw_screenWilliam Wilgus1-2/+2
Change-Id: I72f16163684aba6c9c3fcf4ade6f2906d80b3899
2019-07-10Fix possible truncation statusbar.c->gui_statusbar_icon_batteryWilliam Wilgus1-3/+4
limit percent range to 0 - 100% Change-Id: I46477cdfe954fb1ea3e6158949c920769447762e
2019-07-09Fix possible truncation albumart.cWilliam Wilgus1-2/+2
Change-Id: Ie0e576f26c0507cc12fbdc12093d6fe924377e1d
2019-07-10lua add track length & elapsed to rb.audio()William Wilgus1-4/+20
track elapsed is needed to use fast-forward and rewind effectively track length might as well be added too.. Change-Id: I906c92eb5260164c6177d8c0a8ff879b1fad7898
2019-07-09wolf3d: fix FM OPL alignment bug in a cleaner wayFranklin Wei2-9/+8
wl_def.h has a #pragma pack(1), which causes issues when we take the address of an unaligned struct field. This fixes the issue by disabling packing in fmopl_gpl.c. Change-Id: I526880fa73226e8028855896f7efc3a66571b3ec
2019-07-09sdl: fix buildFranklin Wei1-3/+3
-T flag is program-specific. Change-Id: I730a9c19be43e79c7ff4e6d4fb5b8f498f08515e
2019-07-09wolf3d: add missing SOURCES.wolfFranklin Wei1-0/+27
I'm dumb... Change-Id: I5e8ebcf3d7e739c1cd50509b15fe585819ba7fb9
2019-07-09Wolfenstein 3-D!Franklin Wei68-4/+44163
This is a port of Wolf4SDL, which is derived from the original id software source release. The port runs on top of the SDL plugin runtime and is loaded as an overlay. Licensing of the game code is not an issue, as discussed below (essentially, the Debian project treats Wolf4SDL as GPLv2, with an email from John Carmack backing it up): http://forums.rockbox.org/index.php?topic=52872 Included is a copy of MAME's Yamaha OPL sound chip emulator (fmopl_gpl.c). This file was not part of the original Wolf4SDL source (which includes a non-GPL'd version), but was rather rebased from from a later MAME source which had been relicensed to GPLv2. Change-Id: I64c2ba035e0be7e2f49252f40640641416613439
2019-07-09rbendian.h: fall back to generic swap macrosFranklin Wei1-3/+1
Change-Id: If85086c0fd6b22d50759b16d2545e1798832d12c
2019-07-09sdl: silence audio driver debug outputFranklin Wei1-2/+2
Change-Id: I7aae3419f56f9cf952d9383f2a6cf9e9950e9a6d
2019-07-09sdl: a couple minor fixesFranklin Wei3-20/+18
Prevents system SDL from interfering with thread driver selection. Also adds test code for alignment faults. Change-Id: I8bc181922c4a9e764429897dbbaa1ffaabd01126
2019-07-09lua remove error messages for pre-compiled chunksWilliam Wilgus2-3/+3
We don't have the functionality in the viewer to run pre-compiled chunks plus if anyone ever wants to add it its easy enough to remove the define frees 3K Change-Id: I8d2086e04b51e3ce147ab8741a7d354cb9bf1ade
2019-06-27Fix reversal of "always/never" in "LCD setting > Sleep (After Backlight Off)"Sebastian Leonhardt2-11/+14
The bug was introduced in a06d9c8. The patch also fixes some (more or less) related obsolete comments. Change-Id: I5e491d64574c37cdbc46b146d7cfc555d86b9a11
2019-06-17configure: add --32-bit option to build a 32-bit simulator/applicationFranklin Wei1-0/+10
I use this to test duke3d in the sim, because it does some nasty pointer arithmetic with 32-bit ints. Should be useful for other things as well. Change-Id: I807c81b32c61538de9edc3fca77fde193dc4e617
2019-06-17Boomshine Fix rb.touchscreen_set_mode()William Wilgus1-1/+1
Change-Id: I5bc835f1e006ed923cf0b7a3fcf91d4e357913ed
2019-06-16sdl: add pointer to wiki for docsFranklin Wei1-0/+2
Change-Id: I6e87658351f32d3c40d9ca2b635ae2f654fdd3aa
2019-06-16sdl: prevent simulator build from using pthreadsFranklin Wei1-2/+0
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
2019-06-16duke3d: improve manualFranklin Wei13-3/+15
Adds screenshots for all supported targets. Also adds a bit of information to point users to the data files. Change-Id: I5e0f1bcdb73690a14616a3e486228c73b1617ffc
2019-06-02jz7460: Disable IRQ-driven DMA transfers.Solomon Peachy1-1/+1
This greatly increases the stability of SD card write operations. (I suspect the underlying problem is not IRQ operation itself, instead being exacerbated by it..) Change-Id: Ia00f0656abd4b3cb0b1b5fc9db7c1b6a02847956
2019-05-31Agptek rocker: do not update display when not activeMarcin Bukat1-17/+23
Change-Id: I963a9098b82a09aed8050123932a128f2d08dee0
2019-05-31Fix IRAM overflow introduced in 7a8c9daf7efMarcin Bukat1-3/+8
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
2019-05-15Work around DX90 compile errorFranklin Wei1-0/+1
Change-Id: I80751a41d0711c52558ba198c22d1f012998302c
2019-05-15puzzles: refactor rockbox frontendFranklin Wei3-33/+41
Cleaned up a bit of copy-pasted code and added some useful comments. Change-Id: I9a6f37acbeeda58b3ea8c65ee96230372400f323
2019-05-15puzzles: resync with upstreamFranklin Wei11-496/+2525
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
2019-04-22nwztools: fix MakefileAmaury Pouly1-2/+3
Seems like newer versions of mingw will sponteanously add a .exe suffix to the output path if it doesn't have one, for example mingw-gcc -o scsitool bla will actually create scsitool.exe and of course this breaks my release script. Fix this by explicitely adding the .exe to avoid any problem Change-Id: Ic8019b968b532b2ca612ba0c03977a96c22cee01
2019-04-22nwztools: add DMP-Z1 to the databaseAmaury Pouly7-5/+104
This is one of those fancy gold-plated devices. Of course it breaks my scripts that were nicely expecting every device to start with NW. Change-Id: I161320f620f65f4f92c2650d192b26a9831eeb9d
2019-04-22Fix REMOTE_CONTEXT failureWilliam Wilgus1-1/+1
IRC user <sazmap> brought an error in the action system to my attention the REMOTE_CONTEXT flag should be added if any remote button is pressed Change-Id: Ie3aab97cf835eab108d4b2bdcd8464fcd649da42
2019-02-26Fix skin_engine.c Album Art never dealloc'd on theme changeWilliam Wilgus2-0/+8
Patch from forum user Chris_s http://forums.rockbox.org/index.php/topic,52708.0.html Change-Id: I29f8702ced300d1dc90dfa0e8baa609b9051903e
2019-02-08Fix simulator/transflective: Display wasn't enabled on first keypress when ↵Sebastian Leonhardt1-1/+4
backlight always off Change-Id: Ibfa09e7bf839d4d12ef01e4812b5c47c9e32a3be
2019-02-08Fix the fixSebastian Leonhardt2-3/+3
Change-Id: I54b97fd0c208f775e4ee22cf8499f1da423ebc39
2019-02-08Fix red and remove duplicated function declarationSebastian Leonhardt3-6/+6
Change-Id: I5fed7fdad077eedfc1e36fbd9e1669f11b90288d
2019-02-07Add YH820 current usage for runtime estimationSebastian Leonhardt1-0/+7
Change-Id: If50d7e6db3077853dfba438d9765cdb3513f2910
2019-02-07YH-820: prohibit to change time/date on some hardware versionsSebastian Leonhardt1-0/+18
This patch will autodetect these players, where setting the time/date would leave the player in an unusable state. Change-Id: I0579610ce7c10152ace27bb9c06cf6cb2aab8052
2019-02-07transflective LCDs: fix "first buttonpress enables backlight only"Sebastian Leonhardt1-1/+9
This should be done even if the backlight is set to "always off", i.e. if the LCD is sleeping, a button press should be "eaten" and just wake up the LCD. Change-Id: I3946bdbbdc81f23eae3f47423123cefa275e0afc
2019-02-07Simulator: improve simulation of transflective screensSebastian Leonhardt2-0/+11
This patch simulates the three possible states of a transflective LCD: backlight on (bright screen as usual), backlight off (dimmed screen) and LCD off (black screen). Makes use of already defined 'BACKLIGHT_OFF_ALPHA'. Change-Id: I9b0fc79b8d50c29e024ba1e6d9c2501119a7e0e0
2019-02-07Fix lcd not waking up when backlight is always offSebastian Leonhardt2-0/+8
This patch is relevant for targets with a transflective display. If the backlight was set to "always off" (e.g. to use the lcd in a pure passive way), and the sleep timer ran off, the LCD would stay disabled and didn't wake up when a button is pressed. Change-Id: I0a157c7f421d9fc4c7d8ba903f2cf93f6cef51d0
2019-02-07YH820: implement LCD sleepSebastian Leonhardt4-8/+57
use sleep setting to keep transflective LCD active without backlight Change-Id: Iccd97e956d5e4a2a22abc90d15e9123782126ecb
2019-02-07Fix tree.c static allocation detection during buffer moveWilliam Wilgus1-1/+1
Change-Id: I170177ff331f33961863eff0dd3ba5c570a3961d
2019-02-04pitchscreen: Fix compile on HWCODEC players.Solomon Peachy1-1/+5
Change-Id: Iffb7018e935e017baf84ddc8e742270f82b996ab
2019-02-04Fix minor issues introduced in fe95127 (Playlist playing time)Solomon Peachy1-3/+3
* Custom statusbars inappropriately overwriten * Off-by-one error displaying playlist position. Change-Id: I08df67110fab97ed213c53e8fa86d386367cd6be
2019-02-03Add speech feedback in pitchscreenSolomon Peachy2-1/+127
Patch by Igor Poretsky Change-Id: I8828cefdb3346a25071fba0afff2c9d3bca440a1