1
0
Fork 0
forked from len0rd/rockbox
Commit graph

17531 commits

Author SHA1 Message Date
Solomon Peachy
c71b6265b0 Fix a mechanical error in the Simplified Chinese translation
Change-Id: Ibdd4b948ec8e2e6d761362e465a7117ef74e1520
2024-09-17 11:09:41 -04:00
Solomon Peachy
e09c055a41 lang: Replace all <...> with [...]
<..> gets interpreted as a drive/volume ID, which has special voicing rules.

(this is especially visible in the DB browser)

Change-Id: I7c2598004a4e58451267d77f786eb52f7c09bd3f
2024-09-17 10:21:46 -04:00
Solomon Peachy
7d9fbae749 Minor mechanical updates to the Russian translation
...This should be sufficient to push it to 100%

Change-Id: I6b884725a7d3823c66742856cd7e581880d0830e
2024-09-16 08:27:42 -04:00
Solomon Peachy
9fb6883d01 FS#13489: Updated Russian translation (Dmitry Prozorov)
Change-Id: I8e605959101b3fd08eae92b7eb80c9a8525bc5e3
2024-09-16 07:53:58 -04:00
Solomon Peachy
5ab334f07f FS#13488: Updated Russian translation (Dmitry Prozorov)
Change-Id: I2950fdef4ba5b8373b7661ececd15c02822dd403
2024-09-15 09:57:59 -04:00
Solomon Peachy
10382caa3b FS#13487: Updated italian translation (Alessio Lenzi)
Change-Id: I47a45002c0da8d6ae5160ffe6d423a3061c654bd
2024-09-15 07:18:20 -04:00
William Wilgus
de355d225c Remove static buffer from shortcts.c
as long as we put it back the way we found it u.path is a
writable buffer

Change-Id: I6f1e6139ce96b8edb61ad8b0ae6a6f2218eee855
2024-09-13 11:22:46 -04:00
William Wilgus
79bed1f422 RFC skin_tokens remove a static buffer
it was hard to hit this branch, I had to comment out:
ln 555    else if (offset == 1)
ln 556        pid3 = state->nid3;

as far as I can tell the reason for the separate filename buffer
was due to the failure mode of audio_peek_track() wiping
the id3->path, stands to reason for me that we can just fill it
again

-Already found a gotcha playlist_peek() mutates the buffer
 makes me like this solution less, might rework tagcache_fill_tags()
instead

--Fixed

Change-Id: I4a2ee71a8e2d0739c9e141948b71c2ed36296e3b
2024-09-12 19:16:02 -04:00
Solomon Peachy
85652e6bd1 FS#13486 - Updated Korean Voice translation (Hoseok Seo)
Change-Id: Ic6266ef664fb158fc1ee2c5c3e67a34d429a4571
2024-09-12 10:46:39 -04:00
Solomon Peachy
7e31b73eda Multiple Translation updates
- Korean (Hoseok Seo)
 - Polish (Adam Rak)
 - Simplified Chinese ( 王吉)
 - US English (Solomon Peachy)

Change-Id: Id5fa80d1d6711cdcb93d158ff014552732168e18
2024-09-10 15:35:14 -04:00
Timothée Jaussoin
6b67f0fd3d Complete the french translation for the main menus and settings
Change-Id: I943b610a49a12e7d98d226a64d1284b96ae5e549
2024-09-10 10:08:56 -04:00
William Wilgus
8b754ce591 tagtree add crc check so we can reuse already loaded entries
If you have a lot of tracks loaded in a database view and play a
track it builds a playlist and puts you into the wps

if you stop playback and exit the WPS you are immediately
loading entries that were just loaded

if you return to the database again reload data thats probably
still there

this patch gets a crc of the data and if it matches reuses it in
the tagtree rather than reloading it

Change-Id: Ice3aba7569f19afdd1627ba18c2dc781f98cbf93
2024-09-10 03:49:21 -04:00
Paul Sauro
f7db73097a Playlist viewer: Add new options to allow formatting using tags
Offer new options to show elegantly your entries in any playlist/dynamic playlist viewer. This is especially important if you dual boot an iPod with Stock OS and want to sync with iTunes; with this very popular setup, file names are obfuscated which results in any Rockbox playlist viewer difficult to enjoy, and it was a long standing issue reported by several Rockbox users over the years. The only way to show the title was to open a contextual menu on each song to get infos about the selected song, which is a very long and anti-ergonomic process to understand what is on your current playlist/randomized playlist. The idea of this patch is to provide new alternatives that the user can select. I personally selected the Title & Album view which provides excellent readability.

This patch was built with performance in mind using lazy loading to load one by one the tags then cache a string and use the little cache as much as possible to make scrolling in the same area as smooth as possible. Performance remains very acceptable even on an iPod 4G with its original hard drive. Using a real compact flash with my iPod Mini 2G reduces the latency even more.

Those new options are disabled by default because they impact noticeably the scrolling performance and are less relevant if your files are decently properly named.

Unfortunately, the search feature in a playlist will need to continue to use the raw filename because reading the tags for a whole playlist is a performance disaster. This works decently while viewing just because I made a code that load those one by one as much as possible.

I focused also on testing that the opening of the playlist viewer UI remained fast, and loading one by one with lazy loading allows to get very little overhead in this regard.

Change-Id: I00d9c802e29f8372447813b035bbae207a016467
2024-09-09 18:21:38 -04:00
Solomon Peachy
1f1b3bce86 FS#13480: Updated Russian Translation (Dimitry Prozorov)
Change-Id: I6f35d6b596c580e22346b806b2f8fc987a85d219
2024-09-08 14:31:56 -04:00
Solomon Peachy
868631e7d1 Update US English "translation"
Change-Id: I8c5213fdec3cec418179920c00ab3766d6249fd7
2024-09-08 14:31:56 -04:00
Solomon Peachy
37ca92d276 lua: button_helper needs $(EXTRA_DEFINES) on the host build side
Change-Id: I526f2deec4e4f9b8dbf00015c2c9a76f738a6248
2024-09-08 12:57:22 -04:00
Solomon Peachy
83890c249c FS#13482 - Corrected italian translation (Alessio Lenzi)
Change-Id: Ibd13cdf68aca4d72865e8f75adfcdcc13753eb0d
2024-09-08 12:32:21 -04:00
William Wilgus
a86e2b5c6e Tagtree selective random playlist -- rewrite
this is a bit cleaner without so much ram (or code) used

Credit to goes to Paul Sauro (OlsroFR) as this was his idea

if available space exists in the pluginbuf it uses fisher yates
shuffle to get good probability
and falls back to random permutation if not

Change-Id: I413078a48314ce4c6f3722c78e0858a407b7b46e
2024-09-08 12:09:04 -04:00
William Wilgus
55e1a78cf8 Reworks to the shuffle system
spread remaining songs amongst segments
bit of code clean-up

Change-Id: I198b54978eb9d111e060bb9aca3d71c348cad7c9
2024-09-04 10:58:24 -04:00
William Wilgus
34e54b33f7 codestyle changes on g5911
Change-Id: I8e3b172686fe78d52a8b407193479d3af36ee536
2024-09-04 10:58:24 -04:00
Solomon Peachy
87e9ca2d3a FS#13481: Updated Simplified Chinese translation (王吉)
Change-Id: I3e6022be2f89e85424a9ead3a3159d7043dc0fcc
2024-09-04 08:50:15 -04:00
Solomon Peachy
142003328d Translation updates:
* English-US (Solomon Peachy)
     * Italian (Alessio Lenzi)
     * Korean (Hoseok Seo)
     * Polish (Adam Rak)

Change-Id: I9c936468e1b96cb8496274076b542f1625d6ae21
2024-09-03 11:21:30 -04:00
William Wilgus
a2cc7546d8 Add DeviceData to bootloaders
same vein as bootdata but for devices that need to pass info back to a
running firmware

Change-Id: I0cdcdc0475804dfbbee415ab487104ae8fc8ac69
2024-09-02 13:29:43 -04:00
Paul Sauro
c16dbbfd1f Reworks to the shuffle system to improve performance and allow fast shuffling from a big library (but this work for all database views)
This improvement brings a huge performance improvement to start a random mix of your library. Previously, the only way to do this was to increase the size of a playlist with absurd sizes number. Now it will respect the limitation but will insert random songs from the current view.

Database: Add true random songs in playlist if it is gonna exceed its maximum capacity

More context is available here : https://www.reddit.com/r/rockbox/comments/1ez0mq4/i_developped_true_full_library_shuffle_for/

Also :
- Improved layout in the DB browser
- New default max playlists capacity is now 2000 on old PortalPlayer targets to give a better user experience and not having to wait dozens of seconds while creating a playlist
- "Show insert shuffled" option is now true by default
- Add a new shortcut to play all songs shuffled in the DB browser
- Now the feature is fully optional and enabled only on targets that have more than 2MB of RAM
- Add entries about this feature in the manual to explain it to the users
Change-Id: I1aebaf7ebcff2bf907080f1861027d530619097c

Change-Id: I3354923b148eeef1975171990e814a1a505d1df0
2024-08-31 10:44:20 -04:00
Solomon Peachy
f6e8c20188 FS#13475: Updated Polish translation (Adam Rak)
Change-Id: I0d06661492c9c174c354974816c115f90d8da92a
2024-08-30 08:33:20 -04:00
Solomon Peachy
8319d43b57 FS#13474: Updated Simplified Chinese translation (王吉)
Change-Id: I2046ddf580f0d6ddb40fd06a685af9fc56db7875
2024-08-30 08:32:07 -04:00
Solomon Peachy
edd607c392 FS#13473: Update Korean translation (Hoseok Seo)
Change-Id: Ie624920ae4e8c88382051f44067ef47a33b4c1a2
2024-08-29 08:07:45 -04:00
Solomon Peachy
976a2a22d5 Update english-us "translation"
Change-Id: I6da931655a9a1e43cef6cac566bee5403a279ea1
2024-08-29 08:06:57 -04:00
William Wilgus
054ba76d81 Morse code cheat sheet, better use [of] pixels available on screen
This improvement allows to show all characters even on a tiny screen
like the screen of the iPod Minis

Change-Id: Ibffd4f562d8bf9b3859528bbea59ca4f9190c4fd
2024-08-29 07:59:04 -04:00
Paul Sauro
f69d9c8a95 Settings: Add a new option to prevent text scrollings in the home screen
This option is especially useful for theme creators that want to create themes with lockscreens. When text is scrolling, it is breaking the lockscreen so setting this option to true prevent this. Text will continue to scroll normally in all other contexts.

Change-Id: I194f6837217881d50f567a775b81d0b422caf35c
2024-08-28 20:24:44 -04:00
Franklin Wei
eca00638ae puzzles: add Slide and Sokoban.
This enables two of the "unfinished" puzzles. Slide requires a new "sticky
mouse mode" to enable dragging. The help system is disabled for these
puzzles, since they lack manual chapters.

Group is currently unplayable due to lack of request_keys() support, which
will need to be added upstream. Separate fails to draw anything.

Change-Id: I7bcff3679ac5b10b0f39c5eaa19a36b4b1fe8d53
2024-08-25 19:30:01 -04:00
Solomon Peachy
3dd69ce23e FS#13469: Updatd Simplified Chinese translation (王吉)
Change-Id: I2fb3f602c3c54b7c8313228306c1bdf3777cfad6
2024-08-23 19:02:15 -04:00
Franklin Wei
ea0e3704a8 puzzles: resync with upstream 262f709.
This is the first resync with a fully unmodified upstream repo. This
includes a new scanline polygon renderer in the upstream puzzles
distribution. This allows us to get rid of the monstrosity of a
polygon renderer we had been shipping in rockbox.c.

Change-Id: I23628c74bb5ff7a9e7932bf16d68a1c867c49969
2024-08-16 16:31:28 -04:00
Franklin Wei
903e8c5b32 puzzles: remove unnecessary files from the src/ directory.
This updates the resync.sh script to be more intelligent about which files
it copies from the upstream tree. It now attempts some rudimentary parsing
of the puzzles CMakeLists.txt file to figure out which files are actually
necessary, and copies only those.

This adds a new SOURCES.rockbox source file list for the Rockbox-specific
parts of the port.

Change-Id: I461f87ac712e3b2982dcbb0be9d70d278384a4e7
2024-08-16 16:31:28 -04:00
Solomon Peachy
19043660ac FS#13467: Updated Polish translation (Adam Rak)
Change-Id: Ie5b2b62dfb70de7faef781299a8762faa6c4f58c
2024-08-13 10:14:51 -04:00
Solomon Peachy
8c25fcfbf0 ...fix more red from 15e52374
Change-Id: Ibbfb89b2c40c0ac8b5a514f130d7b672afb866fa
2024-08-12 15:38:11 -04:00
Solomon Peachy
05354e1bef Hopefully fix the remaining red from 15e52374
(imx233, ipodnano2g, !multidrive hosted/sims)

Change-Id: I9c89887078f9f50d3aac73f468ac323699e1fd1f
2024-08-12 15:20:13 -04:00
Solomon Peachy
6e69241279 Fix some of the red in 15e52374
Change-Id: I712102ec09d6058567768b86430bc3120a179a40
2024-08-12 15:03:56 -04:00
Solomon Peachy
15e5237469 storage: 64-bit sector offsets
* Create new 'sector_t' type alias:
    * uint64_t for all targets with HAVE_LBA48 or HAVE_SDUC
    * unsigned long for the everything else
 * Alter all storage APIs to use sector_t instead of 'unsigned long'
 * Alter Volume/Partition/storage info structures to use sector_t
 * Disk cache converted to sector_t
 * ATA Core:
    * convert to using sector_t for sector addresses and drive sizes
    * Always fill out upper 16 bits of LBA48 addresses
    * IDENTIFY INFO is fixed at 512 bytes, not SECTOR_SIZE
 * USB mass storage:
    * convert to using sector_t for sector addesses and drive sizes
    * Implement READ_16/WRITE_16 for LBA48 addresses
 * Convert FAT code to use sector_t for all sector references
 * output_dyn_value() now accepts int64_t instead of 'int'
 * Corrected "rockbox info" to work for (MULTIVOLUME & !MULTIDRIVE)
 * Better reporting of disk and (logical+physical) sector sizes in debug info
 * Detect SDUC cards and report on storage debug_info screen

To-do: SDUC

 * Refactor SD core to remove duplicate code in every driver
   * Card probe and init state machine
 * Implement core SDUC support
   * SD2.0 needs to be 2.0+ (fixed for jz47xx and x1000)
   * Host and Card ID (ACMD41)
   * 32-bit addressing for all read/write/erase operations (CMD22)
 * ADD SDUC to target device drivers, defining HAVE_SDUC as appropriate

Change-Id: Ib0138781a0081664d11511037685503df1b93608
2024-08-12 14:23:44 -04:00
Solomon Peachy
9ff308a589 Update multiple translations:
- English-US (Solomon Peachy)
 - Italian (Alessio Lenzi)
 - Chinese-Simplified (	王吉)
 - Korean (Hoseok Seo)

Change-Id: I0b8afc23f3d91bb374d05cc63a7b7e27bbccffbb
2024-08-12 14:23:44 -04:00
Christian Soffke
512f5561ba fileop: Prevent poweroff during move
When overwriting an existing directory, the idle
power off timer may fire during the mass-renaming
of individual files.

Change-Id: Iedbc882c2470c32129a162d31dab8e5031a929b9
2024-08-11 19:33:05 +02:00
Christian Soffke
ce417b3e1b fileop: check dst path length during pre-scan
Use the known difference in path length between src
and dst in order to detect an insufficient
buffer size not just for the source, but also for
the destination path during the pre-scan already.

Change-Id: I9e4caeb9b9d2cb1e9577f418f2b777ab17718acf
2024-08-11 19:32:55 +02:00
Christian Soffke
48400b6ec1 fileop: fix slow pre-scan & flashing progress bar
Scanning files before a delete or copy operation was
slowed down by splashf() being called too frequently.

- Delay and update splashf every 0.5s (the scan will
  often be finished in a split second)
- Only clear screen buffer before scan info is redrawn
- Display name of *top* level item only, to prevent bar
  from jumping around due to the string length changing
- Use item size for progress bar, so that the overall
  progress isn't interrupted by each file's progress
- Display processed & total file sizes (KiB if total
  is < 10MiB, or MiB otherwise)
- Move delete confirmation before scan to provide
  instant UI feedback

Change-Id: I882a8db4161a46aca2d398e371ec4ed018fc8501
2024-08-11 13:18:50 -04:00
Christian Soffke
28badc5703 Fix yellow from commit 52b9656ed6
Change-Id: I449396e4a43a6909738912ae2a6284acdf16352a
2024-08-11 18:49:47 +02:00
Christian Soffke
52b9656ed6 Fix red/yellow from commit 8dcd781291
Change-Id: Ie5761f8f31f1d3648ba67220299cbcba582ed69d
2024-08-11 18:09:50 +02:00
Christian Soffke
8dcd781291 plugins: Playing Time: Add 'Remaining' and 'Single Mode' options
1) Remaining:
Sometimes, you may only be interested in how
much time is left in a playlist, but don't care
about the progress already made.

The new option will disregard already played tracks,
which can be much faster, depending on your position
in the playlist.

2) Single Mode:
When 'Single Mode' is enabled (and set to something
other than 'Track'), you now have the option to see
the time elapsed and remaining specifically for
that section of the playlist (e.g. the playing album).

Change-Id: I786eaababc537f565ab3fa4de1c46b7d5f3d1101
2024-08-11 17:30:19 +02:00
Franklin Wei
1f7ea715db puzzles: resync to ee5e327 (Simon's 1c1899e) and update documentation.
Updates URLs of relevant upstream repos to longer-lived Github URLs instead
of my personal site.

Change-Id: I08bba5c12193c999f252b4ea70ae40c9d1a3552d
2024-08-08 23:49:33 -04:00
Franklin Wei
ab3982247d puzzles: remove timestamp from genhelp.sh output.
This will reduce noise in the Rockbox commit history.

Change-Id: I2d6d02cd3ae7e742b30ecd9db9335fb386c33f3a
2024-08-08 23:47:48 -04:00
Solomon Peachy
66fa10f1ba FS#13463: Updated Italian translation (Alessio Lenzi)
Change-Id: I22d97140773292402301b1a9642a6852976f05da
2024-08-04 14:48:22 -04:00
Christian Soffke
a7f9557c9c list: Fix interrupted playback when scrolling l/r
Change-Id: I2d054a8cec4e680d5ff5ce62e7ea94c00b13ebf1
2024-08-01 16:53:57 +02:00