Skip to content

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

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

Closed
wants to merge 3 commits into 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
@ScipioWright ScipioWright added the is: enhancement Issues requesting new features or pull requests implementing new features. label Jan 30, 2025
Comment on lines +293 to +294
from settings import get_settings
auto_start = get_settings().mmbn3_options.rom_start
Copy link
Collaborator

Choose a reason for hiding this comment

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

i know you implemented literally the code i told you to but i was reminded between making that comment and now that this is the better way for world-specific code to interact with the settings api

Suggested change
from settings import get_settings
auto_start = get_settings().mmbn3_options.rom_start
from worlds.mmbn3 import MMBN3World
auto_start = MMBN3World.settings.rom_start

@digiholic digiholic closed this Jun 3, 2025
@digiholic digiholic deleted the mmbn3-rom-path-fix branch June 3, 2025 17:07
@digiholic digiholic restored the mmbn3-rom-path-fix branch June 3, 2025 18:04
@digiholic
Copy link
Collaborator Author

Woops, didn't know this one was still waiting. I purged stale branches and it closed this one. I restored the branch and added the changes to #5077

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