Log inGet started
·
assettype · drop-in viewer
asset⌬ assettypeassetTypeprimary: behavior.luau·part ofpackage retro.package·originates fromworld f2b7e29b-6…

emulatorCore.assetType

A pluggable console emulator: the machine spec the `RetroConsole` cabinet discovers and boots. Publishing a new `<name>.emulatorCore` asset (in any package) makes that console appear in every cabinet in the world — the cabinet enumerates `asset.list("emulatorCore")` live, so core…

by◐Deata·posted 2mo ago
What it does

emulatorCore (asset type)

A pluggable console emulator: the machine spec the RetroConsole cabinet discovers and boots. Publishing a new <name>.emulatorCore asset (in any package) makes that console appear in every cabinet in the world — the cabinet enumerates asset.list("emulatorCore") live, so cores install like any other content, with no cabinet changes.

Instance shape

<name>.emulatorCore/init.luau returns the core spec:

return {
	id = "nes",                     -- stable key: save/store namespaces derive from it
	name = "NES",                   -- select-screen label
	cover = "cover_nes",            -- optional: texture reference shown on the select screen
	extensions = { "nes" },         -- cartridge extensions, lowercase, first = default
	width = 256,                    -- native framebuffer size
	height = 240,
	fps = 60.0988,                  -- hardware frame rate
	romsDir = "/zero/source/nes_roms",
	storePrefix = "nes_roms/",      -- runtime-data cartridge library namespace
	savesPrefix = "nes_saves/",     -- battery-save namespace; omit if the console has none
	make = function(bytes) ... end, -- romBytes -> machine; raises on a bad ROM
	validate = function(bytes) ... end, -- ok, err — gate for uploads/URL fetches
	framebuffer = function(m) ... end,  -- machine -> RGBA8 buffer (width*height*4)
	applyInput = function(m) ... end,   -- read the keyboard, set machine input
	neutralInput = function(m) ... end, -- release every button (called on disengage)
	voices = function(m) ... end,   -- optional: { {active, hz, vol, noise} } for MIDI
	statusFor = function(m) ... end,-- optional one-line status; defaults to m.title
	ram = {                         -- optional battery accessors
		isDirty = function(m) ... end,
		clearDirty = function(m) ... end,
		get = function(m) ... end,
		set = function(m, bytes) ... end,
	},
}

The machine contract behind make is the retro.host one: m:runFrame() advances one video frame; m.title keys battery saves and the status line.

Reading a spec

asset.resolve("<name>", "emulatorCore"):spec() loads and caches the spec (the type's behavior.luau provides :spec() on every reference).

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module EmulatorCoreAssetTypeRef Per-instance methods on every `AssetRef<emulatorCore>`. `:spec()` loads, validates, and caches the core spec the instance's `init.luau`

initPathOf(self: ?) → string

argtypedescription
self?

spec(self: ?, reload: boolean?) → void

Load + validate THIS instance's spec table. Cached per init path; pass `reload = true` to re-read after editing the core asset.

argtypedescription
self?
reloadboolean?

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · retro.package/emulatorCore.assetType

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.