Commit Graph

68 Commits

Author SHA1 Message Date
Georges-Antoine Assi
335dcf5710 Merge branch 'master' into fix/supergrafx-retroachievements-platform-id 2026-07-01 21:36:09 -04:00
Georges-Antoine Assi
f0a195fb1c Merge branch 'master' into fix/fds-retroachievements-platform-id 2026-07-01 21:29:17 -04:00
Georges-Antoine Assi
70206b142d cleanup 2026-07-01 19:13:42 -04:00
Spinnich
ef95f91aa0 fix(retroachievements): match SuperGrafx against RetroAchievements
SuperGrafx games never matched against RetroAchievements: the supergrafx
slug had no RA platform ID, so RA hashing was skipped during scans and
matching bailed out early.

RetroAchievements has no separate SuperGrafx console; its games share the
PC Engine/TurboGrafx-16 console, ID 8, same as tg16. Map supergrafx to
that console in both RA tables, mirroring the existing tg16 entries.

Fixes #3651.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 19:52:14 +00:00
Spinnich
6d8d273a81 fix(retroachievements): match Famicom Disk System against RetroAchievements
Famicom Disk System (FDS) games never matched against RetroAchievements:
the fds slug had no RA platform ID, so RA hashing was skipped during scans
and matching bailed out early.

RetroAchievements lists the FDS as its own console, ID 81, separate from
the NES/Famicom console (ID 7). Map fds to that console in both RA tables,
mirroring the existing platform entries.

Fixes #3646.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 17:33:22 +00:00
Spinnich
895337e9d8 fix(retroachievements): match MSX2 against RetroAchievements
MSX2 games never matched against RetroAchievements: the msx2 slug had no
RA platform ID, so RA hashing was skipped during scans and matching
bailed out early.

RetroAchievements has no separate MSX2 console; it groups MSX2 under the
MSX console, ID 29. Map msx2 to that console in both RA tables, mirroring
the existing msx entry.

Fixes #3644.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 16:40:50 +00:00
Georges-Antoine Assi
3db3dd4434 run fmt 2026-05-14 15:41:32 -04:00
copilot-swe-agent[bot]
2c3335e8cf refactor: version RA hash cache and switch to O(1) hash-index format
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/f7097cd9-6bf4-42df-a14d-ff23e423291f

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-13 18:01:20 +00:00
copilot-swe-agent[bot]
157f719297 fix: include games without achievements in ra_hashes.json
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/d113d268-38fd-4564-892d-959fd5fddc68

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-13 15:17:47 +00:00
Georges-Antoine Assi
f2df03361e fix: cast spread-dict back to RAUserGameProgression to preserve typing
Pylance infers dict[str, Unknown] from the {**old, "highest_award_kind": ...}
spread, which then fails to assign to list[RAUserGameProgression]. Wrap in
typing.cast so the TypedDict type survives the reassignment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 18:08:18 -04:00
zurdi
56bc8c58dd feat: update RAHasher to version 1.8.3 and add Wii platform support 2026-03-20 13:24:19 +00:00
Georges-Antoine Assi
72e884a83c run fmt 2026-03-12 19:02:24 -04:00
copilot-swe-agent[bot]
da30e4daf1 feat: auto-update game status from RetroAchievements award kind
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-11 02:27:38 +00:00
Georges-Antoine Assi
ee8b55e6ef last set of changes 2026-03-07 09:56:17 -05:00
Georges-Antoine Assi
7a5185fe22 complete rest of handler 2025-09-20 19:38:26 -04:00
Georges-Antoine Assi
8c33a95637 remove hartbeat from bh endpoint 2025-09-20 17:57:38 -04:00
Georges-Antoine Assi
3c4113f8a8 Merge branch 'master' into flashpoint-metadata-handler 2025-09-11 21:27:48 -04:00
Georges-Antoine Assi
d7e85ba633 [ROMM-1333] Use metadata tag in filename to match game 2025-09-07 14:12:30 -04:00
Georges-Antoine Assi
d1ecff395b [ROMM-2344] Ignore RA manuals on scan 2025-09-04 23:11:04 -04:00
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Michael Manganiello
d216bad78b misc: Add MetadataHandler's is_enabled method
Convert `MetadataHandler` to an abstract base class and add an
`is_enabled` class method that allows every metadata handler to
independently report whether it is enabled based on its configuration.

This avoids the need for global variables in the config module, allowing
us to change the enabled state of a metadata handler at runtime if
needed.
2025-09-03 22:13:28 -03:00
Georges-Antoine Assi
ef2546ec08 fix base handler filename 2025-08-27 12:40:16 -04:00
Michael Manganiello
9cede7680f feat: Add incremental sync for RetroAchievements progression
This change makes the RetroAchievements progression sync endpoint to
optionally perform an incremental sync (when `incremental` is true),
by only fetching new achievements since the last sync.

This reduces the amount of data fetched and speeds up the sync
process for users who frequently sync their progression. It unblocks the
implementation of automatic periodic syncs in the future.

Frontend behavior:
- When the `Apply` button is clicked in the RetroAchievements settings,
  a full sync is performed (same as before). This is because a change to
  the RA username may have occurred.
- When the `Sync` button is clicked, an incremental sync is performed.
2025-08-27 10:41:51 -03:00
Michael Manganiello
f13d2198db fix: Make RetroAchievements hash matching case-insensitive
Fixes #2182.
2025-08-09 12:48:28 -03:00
Georges-Antoine Assi
1955da78f2 finish all the handlers 2025-07-24 17:05:39 -04:00
Georges-Antoine Assi
8a76528815 finish translating keys 2025-07-24 16:09:49 -04:00
Georges-Antoine Assi
b431aa4d7e manual fixes 2025-07-24 15:43:03 -04:00
Georges-Antoine Assi
39e6fd3579 use ups keys for all lists 2025-07-24 15:30:03 -04:00
Georges-Antoine Assi
973f42cd0b update watasra supervision 2025-07-23 22:20:18 -04:00
Georges-Antoine Assi
595c52bcab Unify singular slugs 2025-07-23 21:52:52 -04:00
Georges-Antoine Assi
51652d5084 make all path stuff async 2025-07-18 10:53:55 -04:00
Georges-Antoine Assi
4838bec0a6 fix rahasher days 2025-07-17 21:55:46 -04:00
Georges-Antoine Assi
0df4eb1985 fix some aggressive usage 2025-07-17 21:20:02 -04:00
Georges-Antoine Assi
0d95735351 finish updating endpoints 2025-07-17 14:44:13 -04:00
Georges-Antoine Assi
d351ad11b0 fix rahandler metadata generation 2025-07-15 16:06:44 -04:00
Georges-Antoine Assi
8049e47d82 change from code review 2025-07-14 11:22:56 -04:00
Georges-Antoine Assi
0224b0a124 fix url of cover art 2025-07-14 10:51:38 -04:00
Georges-Antoine Assi
5d6ae2c842 stop overwriting IDs on scan 2025-07-14 10:31:19 -04:00
Michael Manganiello
8647057e54 misc: Remove _request method from RAHandler
This logic was moved to the RetroAchievements service in #1951.
2025-06-20 12:41:29 -03:00
zurdi
e12114e9ef fix: update badge path handling and improve user progression refresh logic 2025-06-18 10:25:51 +00:00
Georges-Antoine Assi
da74354eed fix ra platform id 2025-06-17 18:50:25 -04:00
Georges-Antoine Assi
d39614e87a Merge pull request #1990 from rommapp/hasheous-matching
Hasheous matching
2025-06-17 16:24:58 -04:00
zurdi
b1aa232ed6 fix: RA metadata file from new platform 2025-06-17 09:40:20 +00:00
Georges-Antoine Assi
66cf16d386 use hasheous as a populator to igdb and ra 2025-06-16 22:29:30 -04:00
Georges-Antoine Assi
f91109da37 pass in ra_hash fully 2025-06-14 22:25:16 -04:00
Georges-Antoine Assi
90a059a600 fix allt he shit 2025-06-13 21:30:13 -04:00
Georges-Antoine Assi
15896566ca progress on reveritng parts 2025-06-13 19:46:07 -04:00
Georges-Antoine Assi
5b80e0ca39 Calculate hashes before fetching metadata 2025-06-12 20:55:49 -04:00
Georges-Antoine Assi
5e6229a59d Fix RA platform IDs for matching 2025-06-11 08:51:47 -04:00
Michael Manganiello
bdc5fa5c41 feat: Display achievements earned in hardcore mode
Differentiate between achievements earned in softcore and hardcore
modes, by using the characteristic gold color for hardcore ones.

Also, update the progress bar to show both softcore and hardcore
completion percentages.
2025-06-10 22:19:41 -03:00