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

MMBN3: Allow use of a specified program for rom_start #4575

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

digiholic
Copy link
Collaborator

What is this fixing or adding?

Fixes an issue where specifying a file or program for rom_start in MMBN3's host.yaml options just opened it in the default program anyway due to truthiness of a string

How was this tested?

Changed rom_start to notepad, loaded patch, confirmed notepad opened instead of bizhawk.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jan 29, 2025
"""
Set this to false to never autostart a rom (such as after patching),
true for operating system default program
Alternatively, a path to a program to open the .z64 file with
Copy link
Collaborator

Choose a reason for hiding this comment

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

is z64 the right file extension?

rom_file: RomFile = RomFile(RomFile.copy_to)
rom_start: bool = True
rom_start: typing.Union[RomStart, bool] = True
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
rom_start: typing.Union[RomStart, bool] = True
rom_start: RomStart | bool = True

I believe we can now do typings like this instead of typing.Union

@ScipioWright ScipioWright added the is: enhancement Issues requesting new features or pull requests implementing new features. label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants