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

feat(): exitgame block list for cores #17

Merged
merged 13 commits into from
Feb 25, 2024
Merged

Conversation

asturur
Copy link
Collaborator

@asturur asturur commented Feb 21, 2024

Add support for a blocklist on the exit game functionality.
With an ini like this:

connection_string=""
probe_device=yes
exit_game=yes
exit_game_blocklist="NES, SNES"

Tapto will exit the game when the card is removed, but not on NES and SNES core

@asturur asturur changed the title DRAFT Feat(): exitgame block list for cores feat(): exitgame block list for cores Feb 24, 2024
@asturur
Copy link
Collaborator Author

asturur commented Feb 24, 2024

There is a logic error, SNES will include NES, so if you blocklist SNES you will also NES.

@asturur
Copy link
Collaborator Author

asturur commented Feb 24, 2024

My reader got super unstable, can't really test reliably

@wizzomafizzo wizzomafizzo merged commit 920576c into main Feb 25, 2024
@wizzomafizzo wizzomafizzo deleted the feat-exitgame-blocklist branch February 25, 2024 12:36
}
return slices.Contains(blocklist, strings.ToLower(mister.GetActiveCoreName()))
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

should we do this at parsing time rather than everytime a card is removed?

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.

None yet

3 participants