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

mobile: add SetGameOptions to replace RunGameOptions #3089

Open
2 of 11 tasks
hajimehoshi opened this issue Sep 9, 2024 · 0 comments
Open
2 of 11 tasks

mobile: add SetGameOptions to replace RunGameOptions #3089

hajimehoshi opened this issue Sep 9, 2024 · 0 comments

Comments

@hajimehoshi
Copy link
Owner

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

RunGameOptions.StrictContextRestoration was added recently. There is no real use case to use this with ebiten.RunGameWithOptions, and this works only with mobile.SetGameWithOptions.

In order to improve UX, let's define SetGameOptions like this:

type SetGameOptions struct {
    RunGameOptions
    StrictContextRestoration bool
}

As this is a breaking change, let's do this in v3.

Why is this needed?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant