Feature/headless app#176
Merged
Merged
Conversation
Add VSCode build and launch for headless app.
…ude the headless app.
Rename existing install instruction for desktop apps.
- --script/--scriptDir are now mutually exclusive with --system,
--systemVariant, --start, --waitForSystemReady, --loadPrg, and
--runLoadedProgram; scripts own all emulator setup and lifecycle
- Automated startup mode (--start etc.) suppresses scripts configured
via appsettings.json to avoid conflicts
- Add emu.host() Lua API returning "headless", "desktop", or "browser"
so scripts can adapt behavior per host (e.g. conditional emu.quit())
- Update example Lua scripts to call emu.select/emu.start themselves
and use emu.host()-gated quit instead of unconditional emu.quit()
- Add CLI args section to APPS_AVALONIA.md; restructure APPS_HEADLESS.md
into scripting mode vs automated startup mode
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Introduces a new headless (no GUI) emulator application that runs the 6502 emulator from the command line, suitable for automation and scripting scenarios.
Changes:
Highbyte.DotNet6502.App.Headlessproject with host app, config, and system setup for C64 and Generic ComputerLuaScreenshotProxyAPPS_HEADLESS.md,INSTALL_HEADLESS.md,INSTALL_DESKTOP_APPS.md; existing desktop app docs reorganizedCommand line parameter changes (headless and Avalonia desktop apps):
--script/--scriptDirare now mutually exclusive with--system,--systemVariant,--start,--waitForSystemReady,--loadPrg, and--runLoadedProgram— when a Lua script is used it owns all emulator setup and lifecycle; combining with CLI lifecycle flags is an error--startetc.) are used without a script, scripts configured viaappsettings.jsonare automatically suppressed to avoid conflictsemu.select("C64")andemu.start()themselves, removing reliance on--system/--startCLI argsAPPS_AVALONIA.md;APPS_HEADLESS.mdupdated with two-mode structure (scripting mode vs automated startup mode)Lua scripting API additions:
emu.host()— returns the host application type ("headless","desktop", or"browser"), allowing scripts to conditionally callemu.quit()or adapt behavior per host; documented inSCRIPTING.mdif emu.host() == "headless" then emu.quit() endinstead of an unconditional quit