Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROM export command line #2293

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

bbbradsmith
Copy link
Contributor

Adds two command line features:

  • -romout command line for ROM export
  • -romconf command line for -romout configuration paramters

I had investigated this a little with #2288 but afterward I realized it maybe wasn't as complex as it looked.

I don't personally have a use/need for this feature, but perhaps someone else would appreciate it, since it seemed -zsmout was wanted previously. One thing I could suggest is that it might be useful for creating unit tests of the ROM exports.

The -romconf allows setting the export parameters as needed, though it is very simply just adding key/value pairs to the DivConfig used by the exporters. This is easy to implement, but creates the problem of having to document the possible values, which I did for the existing exporters. The existing parameter names seem a little bit "internal", but they are quite functional as-is.

I was thinking it would be more ideal if the ROM config parameters were described in romExportDefs, maybe with a vector of String triples (key string, default value string, description). That would avoid the need to maintain a list in the document, since we could provide a way to learn this information in-program instead. It might also avoid the problem of the documentation getting out of sync with the code.

Anyway, not sure if this feature is wanted at this time, but it seemed to require only a little bit of code to accomplish, so I thought I should offer it as a suggestion.

consolidate DivEngine::isROMExportViable function from FurnaceGUI::updateROMExportAvail to avoid copy-paste
@bbbradsmith bbbradsmith changed the title Rom export command line 2 ROM export command line Dec 13, 2024
@freq-mod freq-mod requested a review from tildearrow December 13, 2024 11:38
src/main.cpp Outdated Show resolved Hide resolved
@bbbradsmith
Copy link
Contributor Author

Amended as requested.

Copy link
Owner

@tildearrow tildearrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tildearrow tildearrow merged commit f3081dd into tildearrow:master Dec 19, 2024
5 checks passed
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.

2 participants