Skip to content

fix: read the track count as a word - #7

Open
paviro wants to merge 18 commits into
RepriseOS:mainfrom
paviro:feature/memory-rules
Open

paviro wants to merge 18 commits into
RepriseOS:mainfrom
paviro:feature/memory-rules

Conversation

@paviro

@paviro paviro commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Merge after #5 and RepriseOS/repriseos#101.
Own commits: paviro/extensions@feature/appearance...feature/memory-rules (the rest of the diff is #5 and below).

RepriseOS/repriseos#101 widens the media-list track count from a halfword at MediaEntry_tracks to a word at MediaEntry_groups. Playback Queue, Album Artists and Playback Log read the word, so their counts match the library past 65,535 tracks.

On a core without RepriseOS/repriseos#101 that word holds the group and track counts together, so these builds read a wrong count and Album Artists can hang. The release tags wait for a RepriseOS release that includes it.

Tested in the emulator.

The RepriseOS core answers the library id reprise itself. Its manifest
and header let rv.mk build extensions that import from it; there is no
reprise.rvx.
SDK 1.84 drops the RepriseOS slots from rv_api and lists libraries in a
[libraries] table. Night Shift, Crossfeed and Playback Log list reprise
as an optional library. On a core without it they skip the settings
migration, and Playback Log leaves the album artist empty instead of
refusing to load. Crossfeed lists dsp as required, and the catalog keeps
listing the required ids as requires. All three get a patch release.
rv_row and rv_menu_entry grew in SDK 1.86, so a core at that API refuses
images an older SDK packed, and the SDK refuses a manifest api below
1.86. Every manifest asks for 1.86. Balance and dsp get a patch release
with the rebuild, 0.1.1 each, beside Crossfeed 0.1.1, Night Shift 0.1.3
and Playback Log 0.1.2; reprise stays 0.1.0, it has no release.
rv_pane grew in SDK 1.89, so a core at that API refuses images an older
SDK packed, and the SDK refuses a manifest api below 1.89. Every
manifest asks for 1.89. The versions stay: the 1.86 rebuilds have not
been released.
The three features that leave the RepriseOS core, as extensions: the library
by Album Artist with Artist as the fallback, and a service that reads a
record's Album Artist; an item's tags and file properties from its context
menu, with a service other extensions open it through; and Play Next, Play
Last and Up Next with move, remove, browse and Clear Up Next.
shared/menu_visibility.h takes the Main and Music Menu checkboxes over from
the old core's MVIS record on first start.

The root Makefile, the catalog sources and the README list them; .gitignore
covers the per-extension build directories.
Playback Log 0.1.3 asks the Album Artists extension for the album artist on
each write, so the column is empty when the extension is not running or when
the Album Artist equals the Artist. It goes to api 1.85 for
extension_service. reprise_album_artist_read leaves the reprise library and
its header.
Four features that leave the RepriseOS core, as extensions: Apple's EQ
presets through a filter chain with headroom plus a Custom preset of five
bands with its own editor screen; Settings > Clicker cycling Off, Speaker,
Headphones and Both; the accessory signature verifiers reporting success;
and the EU volume cap, warning and automatic lowering turned off.

On first start Equalizer imports the Custom EQ record the earlier core
stored through the reprise library, moving the precut of layouts without
Auto by one, and shows the Edit EQ row when Apple's EQ preference held the
Custom row. Whatever the record holds, the values are stored so a later
boot cannot import it. Custom EQ values that exist only in the pre-store
CFWEQ file start from the defaults.

The root Makefile, the catalog sources, the README and the NOTICE list
them. Equalizer keeps the core's settings-eq art; the other three take
Cupertino Icons glyphs rendered through the shared Settings icon pipeline.
iAP Auth Bypass and EU Volume Limit add no screen, so their listings carry
no screenshot and the catalog test checks screenshots only where a listing
has them.
The moved extensions ask for API 1.89 like the rest of the catalog: the
core at that API refuses images an older SDK packed, and the SDK refuses
a lower manifest api.
Apps and games from /Reprise/Apps/<id>/ and /Reprise/Games/<id>/:
games join Extras > Games, apps get an Apps row and pane under Extras,
and manifests in those folders are read without a signature. Game
data goes to /Reprise/Data/Games and /Reprise/Data/Apps instead of
iPod_Control. The catalog icon is a Cupertino Icons glyph.
The SDK that builds Homebrew packages lives in eapp-sdk/ of the
RepriseOS repository with RepriseOS/repriseos#108 and later; the Revola
repository it came from is private.
schedule.c and sun.c move from Night Shift to extensions/shared, compiled
into each extension that reads the time zone's sunset and sunrise. The icon
renderer learns to mirror a glyph.
The row opens a choice of Auto, On and Off with its own icon, and sits in
the Appearance menu after Dark Mode while that extension runs, after
Brightness otherwise. On Auto a read that finds no time zone at load is
retried a second later, so the first screen already follows the schedule.
rvt compiles a theme.toml folder into one .rvt file for the Appearance
extension: colour roles, accents and options, replacement art, and derivation
rules the iPod applies to the stock bitmaps at switch time (recolour, alias,
invert, relight). Classic's dark appearance is 109 bitmaps, 108 of them
derived on the device and one hand-made background, so no Apple pixels are in
the repository; the catalog records names, sizes, offsets and checksums only.
The core's own bitmaps are owned by the id reprise; the extension asset
catalog lists the core's settings-info and every first-party extension's.
Tests compare the encoder and lz copies with the SDK checkout and the
extension asset catalog with the build that the next commit's Makefile
writes; CI runs ruff and the tests.

Adapted from RevolaOS themes 6d0ea430642b.
Settings > Appearance, after Brightness: Theme, Accent, Dark Mode (Auto by
sunset and sunrise, On or Off), Menu Covers and Now Playing Cover. Classic's
dark look is derived from the stock artwork on the iPod at switch time; other
themes are .rvt files in /Reprise/Themes, compiled by the rvt compiler in
themes/, which also supplies the format header, the bitmap catalog and the
Classic asset the build packs. The first load imports the core's former Dark
Mode switch. Night Shift's row joins the Appearance menu after Dark Mode.
The root make also writes build/assets.json for the theme tooling.

From RevolaOS extensions a32d616f5a06.
RepriseOS moves the firmware there (repriseos#99). Appearance reads the
stock artwork from it; the rvt tool accepts it as --firmware.
Appearance picks views by their stock id. The day number of a 130 x 128
pane is a copy of the Calendars pane's and missed the native text rule,
so it turned light grey on the picture in Dark Mode. view_id passes the
id through ui_stock_view when the core has it (API 1.91).
With repriseos#101 the core counts a media-list node's tracks in a word
at MediaEntry_groups; the halfword at MediaEntry_tracks holds the upper
half and reads zero below 65,536 tracks. Playback Queue, Album Artists
and Playback Log read the word, so their counts match the library and
follow it past 65,535 tracks. On a core without repriseos#101 that word
holds the group count and the track count together, so these builds
ship with that core change.
@paviro
paviro force-pushed the feature/memory-rules branch from 91aa7af to 1885495 Compare November 28, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant