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

Fix some more issues #222

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 9 commits into from
Apr 27, 2025
Merged

Fix some more issues #222

merged 9 commits into from
Apr 27, 2025

Conversation

wizzomafizzo
Copy link
Member
  • MAME is now an alias for the Arcade system
  • Fix makezip script not including extra files that are dirs
  • Added MSU-1 system
  • Change Batocera MSU-1 mapping to Zaparoo MSU-1 system
  • Fixed indexing systems on Batocera with duplicate Zaparoo system mappings
  • Implemented normalize path function on Batocera
  • Changed merged ID separator on optical drive reader to not conflict with ID normalizing in mappings
  • Fixed ID matching for file mappings to process with normalize ID first

@wizzomafizzo wizzomafizzo requested a review from Copilot April 27, 2025 04:13
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 fixes several issues and updates naming conventions throughout the codebase. Key changes include:

  • Renaming fields from “SystemId” to “SystemID” and updates in system definitions and mappings to support newly added systems (e.g. MSU-1).
  • Adjustments to file and path normalization functions and mapping lookup functions to address collisions and indexing issues.
  • Updates to the Batocera platform code to improve system mapping and file scanning behavior.

Reviewed Changes

Copilot reviewed 22 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/service/readers.go Updated launcher field name to “SystemID” for consistency.
pkg/service/mappings.go Renamed normalization function from NormalizeUid to NormalizeID and added debug logging.
pkg/readers/optical_drive/optical_drive.go Changed merged ID separator from “:” to “/” to avoid conflicts with ID normalization.
pkg/platforms/windows/platform.go, pkg/platforms/steamos/platform.go, pkg/platforms/platforms.go Updated launcher field naming convention from “SystemId” to “SystemID”.
pkg/platforms/mister/* Updated system ID references to use “ID” consistently in tracker and launcher functions.
pkg/platforms/batocera/systemmap.go & platform.go Revised system mapping for Batocera; replaced ReverseSystemMap with a new “toBatoceraSystems” function and added NormalizePath implementation.
pkg/database/systemdefs/systemdefs.go, pkg/database/mappings.go Adjusted system definition fields from “Id” to “ID” and updated normalization calls.
pkg/database/gamesdb/, pkg/api/methods/, pkg/configui/configui.go Updated system ID references across scanning, indexing, and API methods for consistency.
Files not reviewed (1)
  • pkg/assets/systems/MSU1.json: Language not supported

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wizzomafizzo wizzomafizzo marked this pull request as ready for review April 27, 2025 04:23
@wizzomafizzo wizzomafizzo merged commit 563d358 into main Apr 27, 2025
@wizzomafizzo wizzomafizzo deleted the wizzo/issues-2 branch April 27, 2025 04:23
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