Commit graph

102 commits

Author SHA1 Message Date
Aidan MacDonald
005c414e5f Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
2021-08-04 18:59:46 +00:00
Aidan MacDonald
4c60bc9e68 New port: Shanling Q1 native
- Audio playback works
- Touchscreen and buttons work
- Bootloader works and is capable of dual boot
- Plugins are working
- Cabbiev2 theme has been ported
- Stable for general usage

Thanks to Marc Aarts for porting Cabbiev2 and plugin bitmaps.

There's a few minor known issues:

- Bootloader must be installed manually using 'usbboot' as there is
  no support in jztool yet.

- Keymaps may be lacking, need further testing and feedback.

- Some plugins may not be fully adapted to the screen size and could
  benefit from further tweaking.

- LCD shows abnormal effects under some circumstances: for example,
  after viewing a mostly black screen an afterimage appears briefly
  when going back to a brightly-lit screen. Sudden power-off without
  proper shutdown of the backlight causes a "dissolving" effect.

- CW2015 battery reporting driver is buggy, and disabled for now.
  Battery reporting is currently voltage-based using the AXP192.

Change-Id: I635e83f02a880192c5a82cb0861ad3a61c137c3a
2021-07-13 22:01:33 +01:00
Solomon Peachy
092c340a20 [1/4] Remove SH support and all archos targets
This removes all code specific to SH targets

Change-Id: I7980523785d2596e65c06430f4638eec74a06061
2020-07-24 21:20:13 +00:00
William Wilgus
c39f95465b do_menu pass internal synclist reference to callback
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-19 22:10:26 +00:00
Sebastian Leonhardt
e6cd53ad53 Replace SAMSUNG_YH920_PAD with YH92X
seems more logical to me, and is more consistent, since
"SAMSUNG_YH92X_PAD" is already used in the tex files.

Change-Id: Ie9a9d850ea86155a7dcf86c88a22a420a10a3837
2016-01-25 09:23:09 +01:00
Szymon Dziok
5e0baf2922 Bubbles: make it work on Samsung YH-820 and align it on the occasion on Cowon M3.
Change-Id: I8d679ccba7f618cee78445b76452c368b00d2b60
2014-09-08 14:09:58 +02:00
Sebastian Leonhardt
7f7aee3f24 Separate keymaps for YH-820 and YH-920/925
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>
2014-05-24 00:50:11 +02:00
Michael Sevakis
95e23defb0 Make fixepoint.c as a shared library (libfixedpoint.a).
Change-Id: Icc10d6e85f890c432f191233a4d64e09f00be43d
Reviewed-on: http://gerrit.rockbox.org/456
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested-by: Michael Sevakis <jethead71@rockbox.org>
2013-04-26 00:11:04 +02:00
Dimitar Dimitrov
3f82f3aca1 Sansa Clip Zip: Bubble now shows a proper background image
Change-Id: If595378d58a4602bdc6b101c062c6974f6debf62
Reviewed-on: http://gerrit.rockbox.org/167
Reviewed-by: Dimitar Dimitrov <mitakas@gmail.com>
Tested-by: Dimitar Dimitrov <mitakas@gmail.com>
Tested-by: Bertrik Sikken <bertrik@sikken.nl>
Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
Reviewed-by: Rafaël Carré <rafael.carre@gmail.com>
2012-03-03 02:54:26 +01:00
Rafaël Carré
bd691efae9 Sansa Clip Zip: enable all plugins
use too big graphics when needed (some plugins will be ugly)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31113 a1c6a512-1295-4272-9138-f99709370657
2011-12-02 20:28:20 +00:00
Jonathan Gordon
f19f3efb07 Redo r30826 (and hopefully not reintroduce font issues) which cleans up the font API. FONT_UI is deprecated, use screens[screen].getuifont() instead (and .setuifont() to set it after a font has been loaded)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30932 a1c6a512-1295-4272-9138-f99709370657
2011-11-08 10:09:33 +00:00
Andree Buschmann
f7c4594134 Fix further 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657
2011-05-01 13:48:28 +00:00
Thomas Jarosch
f9f89cf5cb RaaA: Fix write locations of plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 23:43:54 +00:00
Michael Sevakis
9f4fdbd1a6 Add backgrounds for 128x160 displays to bubbles and rockblox. Set the coordinates in the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29020 a1c6a512-1295-4272-9138-f99709370657
2011-01-10 07:32:29 +00:00
Michael Sevakis
67ae5cce2e SA9200: Make plugins. Cheat a little just to get things to make at first by using some artwork for 128x128 screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29016 a1c6a512-1295-4272-9138-f99709370657
2011-01-09 21:42:25 +00:00
Rafaël Carré
7014faee69 Remove build conditions inside .c plugin files
Rather use the Makefile to specify which files must be built
Fix color builds with test plugins enabled (test_scanrate gave an empty
.o file)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27886 a1c6a512-1295-4272-9138-f99709370657
2010-08-25 19:00:58 +00:00
Thomas Martitz
cae4ae2c71 Second try: Introduce plugin_crt0.c that every plugin links.
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
2010-08-24 14:30:46 +00:00
Thomas Martitz
93cb949372 Revert "Introduce plugin_crt0.c that every plugin links."
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
2010-08-23 17:12:26 +00:00
Thomas Martitz
abdc5935be Introduce plugin_crt0.c that every plugin links.
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
2010-08-23 16:56:49 +00:00
Thomas Martitz
20e9d56ba5 S#10387 - Rework pluginlib actions
It changes pluginlib actions to contain only a single and simple context (and
other one for remote directional buttons),
consisting of 7(9) buttons: up/down/left/right, select OR short select and long
select, exit and cancel (plus 2 for scrollwheel targets).
This ensures contexts don't clash with other contexts and simplifies them, at
the expense of reduced versatility. However, the versatility made it largely unusable
due to the great number of targets.
This should allow for using pluginlib actions safely for the most simple plugins (e.g. almost all demos).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26202 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 17:41:28 +00:00
Thomas Martitz
0a1d7c28b7 Make open() posix compliant api-wise. A few calls (those with O_CREAT) need 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
2010-05-06 17:35:13 +00:00
Teruaki Kawashima
f79b45d8bb bubbles: fix FS#11070
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25044 a1c6a512-1295-4272-9138-f99709370657
2010-03-06 12:29:17 +00:00
Teruaki Kawashima
3f8d4a5a0f use same variable/macro name for highscore among plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 14:45:37 +00:00
Thomas Martitz
fa4ab10bbb Bubbles: Don't save scores when quit without saving is selected and reduce splash duration
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24586 a1c6a512-1295-4272-9138-f99709370657
2010-02-10 18:55:07 +00:00
Johannes Schwarz
c50209ef7f Hide menu entries "Resume Game" and "Quit without Saving" if not available and clean up the code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24046 a1c6a512-1295-4272-9138-f99709370657
2009-12-17 15:37:52 +00:00
Tomer Shalev
f5e996532d Bubbles: Rename defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23980 a1c6a512-1295-4272-9138-f99709370657
2009-12-13 21:04:16 +00:00
Tomer Shalev
1737a401e4 Bubbles: Remove unused keymaps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23979 a1c6a512-1295-4272-9138-f99709370657
2009-12-13 20:57:45 +00:00
Tomer Shalev
17e054a9fe Use positive logic in #ifdef hell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23939 a1c6a512-1295-4272-9138-f99709370657
2009-12-12 07:27:36 +00:00
Robert Menes
ed64d91bc2 Yet more GoGear SA9200 plugin keymaps. Almost done!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23893 a1c6a512-1295-4272-9138-f99709370657
2009-12-07 18:23:25 +00:00
Johannes Schwarz
2dbdfac86a FS#10620 - fix a bug in bubbles on c200 thanks to Sascha Wilde
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23449 a1c6a512-1295-4272-9138-f99709370657
2009-10-31 20:08:00 +00:00
Teruaki Kawashima
d41e698ea0 brickmania, blackjack, jewels, bubbles: Remove save file only if player resumed the game loaded from the file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22639 a1c6a512-1295-4272-9138-f99709370657
2009-09-06 14:14:22 +00:00
Karl Kurbjun
25123570c7 Fix STRIDE macro for multiscreen and add stride support for picture lib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
2009-09-04 00:46:24 +00:00
Karl Kurbjun
fe608c840d Bubbles: Add support for vertical strides.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22568 a1c6a512-1295-4272-9138-f99709370657
2009-08-31 04:00:30 +00:00
Thomas Martitz
32d50c2803 Bubbles: Change the saving message slightly to include saving scores.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22489 a1c6a512-1295-4272-9138-f99709370657
2009-08-24 01:13:59 +00:00
Thomas Martitz
11def4a3b7 Bubbles: Have one quit item that doesn't save anything ("Quit without Saving") and one that saves everything again, partly reverting r22143 and picking up Hilton Shumway's suggestion about naming it "Quit without Saving".
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22488 a1c6a512-1295-4272-9138-f99709370657
2009-08-24 01:11:24 +00:00
Thomas Martitz
22ddbd9ff0 Bubbles: Don't remove the savegame before actually resuming the saved game, as per dev mailing list discussion around the changes in r22143.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22487 a1c6a512-1295-4272-9138-f99709370657
2009-08-24 01:11:20 +00:00
Teruaki Kawashima
2357ec4178 calendar: fix bug when add new event text longer than last entry.
blackjack: fix bug that bet becomes 10 when resume saved game.
bubbles: save high level to sparate file.
clix, spacerocks, jewels, bubbles: correct text of menu item.
wormlet: clean up code: removed unused defines and functions.
pluginlib display_text: insert sleep so that the screen doesn't quit immediately.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22143 a1c6a512-1295-4272-9138-f99709370657
2009-08-03 16:30:08 +00:00
Karl Kurbjun
50d3928901 Blackjack: Use standard menu and add playback menu, use pluginlib high scores.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22126 a1c6a512-1295-4272-9138-f99709370657
2009-08-03 01:07:58 +00:00
Thomas Martitz
bbc9aebae3 Fix highest succeeded level from the highscores really this time, and don't confuse MIN() and MAX().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22125 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 23:26:02 +00:00
Thomas Martitz
5c09d3741a Cap the level chooser to NUM_LEVELS (100) to avoid accessing level 101, which contains the secret Data Abort Bubble (which looks really funny but is not an Easter Egg). Fix a bug with loading the highest succeeded level from the highscores too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22124 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 23:06:06 +00:00
Thomas Martitz
5291d09aaa Fix red - overlooked renaming in 1 place.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22122 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 21:38:03 +00:00
Thomas Martitz
4654b3c90b New bubbles background for 176x220 (Sansa e200), heavily based off a mockup provided by Marianne Arnold.
Also implement some custom text positioning which is needed to display the text boxes horizontally.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22120 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 20:26:25 +00:00
Thomas Martitz
374b21ef8a Remove two left-over DEBUGFs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22118 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 16:47:06 +00:00
Thomas Martitz
322fae4299 A bit of rework in bubbles:
*) Change saving mechanism: always save into RAM on any exit button, and offer an additional quit item in the game menu (so that 1 item doesn't save -> no disk spinup)
*) Change loading mechanism: always load on entering the game, but delete the save file still on actually resuming (that fixes weirdnesses with the level choosing menu item)
*) Remove the highscores from the bubbles struct.
*) Swap the "Start New Game" and  "Resume Game" menu items to help against accidental deletion of progress.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22116 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 16:41:30 +00:00
Johannes Schwarz
99f5299996 Commit FS#10350, prevents to save an unchanged highscore and move the function show_highscore to the lib
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21960 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 15:16:24 +00:00
Karl Kurbjun
f2c45dc369 Bubbles: Make new screen support a bit more generic and add support for 640x480 and 480x640 screen sizes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21945 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 03:47:03 +00:00
Maurus Cuelenaere
802743a061 Take 2 at 'Consolidate all fixed point math routines in one library' (FS#10400) by Jeffrey Goode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21664 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 18:06:07 +00:00
Johannes Schwarz
cacb47e262 FS#10291: use lib highscore.h and add a new highscore table
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21643 a1c6a512-1295-4272-9138-f99709370657
2009-07-04 23:05:41 +00:00
Maurus Cuelenaere
fef405c328 Enable plugins on the Onda VX747
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20647 a1c6a512-1295-4272-9138-f99709370657
2009-04-07 23:41:44 +00:00
Thomas Martitz
997005ece0 Sansa Fuze: Fix bubbles controls (scrollwheel didn't work).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20338 a1c6a512-1295-4272-9138-f99709370657
2009-03-17 04:49:55 +00:00