8000 Batocera support by wizzomafizzo · Pull Request #210 · ZaparooProject/zaparoo-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Batocera support #210

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

Merged
merged 6 commits into from
Apr 20, 2025
Merged

Batocera support #210

merged 6 commits into from
Apr 20, 2025

Conversation

wizzomafizzo
Copy link
Member

No description provided.

@wizzomafizzo wizzomafizzo marked this pull request as ready for review April 20, 2025 12:14
@wizzomafizzo wizzomafizzo requested a review from Copilot April 20, 2025 12:14
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Batocera platform support for Zaparoo by integrating new deployment tasks, updating platform-specific logic (including launching, input handling, and notifier changes), and adjusting service management for Batocera.

  • Added Batocera-specific deployment task in batocera.yml
  • Introduced new utility functions (e.g., YesNoPrompt) and updated platform implementations in pkg/platforms/batocera
  • Updated CLI service management and integration in cmd/batocera/main.go

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/tasks/batocera.yml Added deploy-arm64 task with scp/ssh commands
pkg/utils/utils.go Added YesNoPrompt function
pkg/platforms/linux/installer/install.go Replaced prompt with YesNoPrompt usage
pkg/platforms/batocera/systemmap.go Added Batocera system mapping
pkg/platforms/batocera/platform.go Updated directory management, launcher implementations, and input handling
pkg/platforms/batocera/keymap.go Added keyboard and gamepad mapping specific to Batocera
pkg/platforms/batocera/esapi.go Introduced helper functions for making API requests
pkg/database/systemdefs/systemdefs.go Minor comment update on SystemAmiga definition
cmd/mistex/main.go Adjusted ExecStart path for service execution
cmd/mac/main.go Removed version print from main function
cmd/batocera/main.go Revised CLI flags and service file installation logic
Files not reviewed (1)
  • cmd/batocera/conf/zaparoo_service: Language not supported
Comments suppressed due to low confidence (2)

pkg/utils/utils.go:217

  • The YesNoPrompt function uses os.Stdin and strings functions (e.g., strings.TrimSpace, strings.ToLower) but these packages are not imported; please add import statements for 'os' and 'strings'.
r := bufio.NewReader(os.Stdin)

pkg/platforms/batocera/platform.go:427

  • The closure defined within the loop over SystemMap captures the loop variables 'k' and 'v' by reference, which can lead to unexpected behavior; please create local copies inside the loop to ensure each closure has its own copy.
for k, v := range SystemMap {

@wizzomafizzo wizzomafizzo merged commit cd741e2 into main Apr 20, 2025
@wizzomafizzo wizzomafizzo deleted the wizzo/batocera branch April 20, 2025 12:15
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.

1 participant
0