From 8a56e9b333ca45751670c78add9dd5ad581bce10 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 18 Feb 2026 10:19:12 -0500 Subject: [PATCH 01/28] [ROMM-3026] Region/language shortcodes should be case sensitive --- backend/handler/filesystem/base_handler.py | 4 ++-- backend/handler/filesystem/roms_handler.py | 28 +++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/backend/handler/filesystem/base_handler.py b/backend/handler/filesystem/base_handler.py index 9be74d0a7..a0c2650b5 100644 --- a/backend/handler/filesystem/base_handler.py +++ b/backend/handler/filesystem/base_handler.py @@ -83,10 +83,10 @@ REGIONS = ( ("W", "World"), ) -REGIONS_BY_SHORTCODE = {region[0].lower(): region[1] for region in REGIONS} +REGIONS_BY_SHORTCODE = {region[0]: region[1] for region in REGIONS} REGIONS_NAME_KEYS = frozenset(region[1].lower() for region in REGIONS) -LANGUAGES_BY_SHORTCODE = {lang[0].lower(): lang[1] for lang in LANGUAGES} +LANGUAGES_BY_SHORTCODE = {lang[0]: lang[1] for lang in LANGUAGES} LANGUAGES_NAME_KEYS = frozenset(lang[1].lower() for lang in LANGUAGES) diff --git a/backend/handler/filesystem/roms_handler.py b/backend/handler/filesystem/roms_handler.py index 5c6401f59..dceb9eb9b 100644 --- a/backend/handler/filesystem/roms_handler.py +++ b/backend/handler/filesystem/roms_handler.py @@ -334,46 +334,46 @@ class FSRomsHandler(FSHandler): regions, languages, other_tags = [], [], [] version = revision = "" - for raw in tags: - tag = raw.lower() + for raw_tag in tags: + lower_tag = raw_tag.lower() # Region by code - if tag in REGIONS_BY_SHORTCODE.keys(): - regions.append(REGIONS_BY_SHORTCODE[tag]) + if raw_tag in REGIONS_BY_SHORTCODE.keys(): + regions.append(REGIONS_BY_SHORTCODE[raw_tag]) continue - if tag in REGIONS_NAME_KEYS: - regions.append(raw) + if lower_tag in REGIONS_NAME_KEYS: + regions.append(raw_tag) continue # Language by code - if tag in LANGUAGES_BY_SHORTCODE.keys(): - languages.append(LANGUAGES_BY_SHORTCODE[tag]) + if raw_tag in LANGUAGES_BY_SHORTCODE.keys(): + languages.append(LANGUAGES_BY_SHORTCODE[raw_tag]) continue - if tag in LANGUAGES_NAME_KEYS: - languages.append(raw) + if lower_tag in LANGUAGES_NAME_KEYS: + languages.append(raw_tag) continue # Version - version_match = VERSION_TAG_REGEX.match(raw) + version_match = VERSION_TAG_REGEX.match(raw_tag) if version_match: version = version_match[1] continue # Region prefix - region_match = REGION_TAG_REGEX.match(raw) + region_match = REGION_TAG_REGEX.match(raw_tag) if region_match: key = region_match[1].lower() regions.append(REGIONS_BY_SHORTCODE.get(key, region_match[1])) continue # Revision prefix - revision_match = REVISION_TAG_REGEX.match(raw) + revision_match = REVISION_TAG_REGEX.match(raw_tag) if revision_match: revision = revision_match[1] continue # Anything else - other_tags.append(raw) + other_tags.append(raw_tag) return ParsedTags( version=version, From 5b1dfe2ba1b076f8f31a5afea979b664c33268e4 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 18 Feb 2026 23:23:35 -0500 Subject: [PATCH 02/28] [ROMM-3031] Fix screenshot property on save/state --- backend/models/assets.py | 22 +-- backend/tests/endpoints/test_assets.py | 228 +++++++++++++++++++++++++ 2 files changed, 240 insertions(+), 10 deletions(-) diff --git a/backend/models/assets.py b/backend/models/assets.py index 4311c069b..95fc2d9e5 100644 --- a/backend/models/assets.py +++ b/backend/models/assets.py @@ -50,6 +50,14 @@ class RomAsset(BaseAsset): user_id: Mapped[int] = mapped_column(ForeignKey("users.id", ondelete="CASCADE")) +class Screenshot(RomAsset): + __tablename__ = "screenshots" + __table_args__ = {"extend_existing": True} + + rom: Mapped[Rom] = relationship(lazy="joined", back_populates="screenshots") + user: Mapped[User] = relationship(lazy="joined", back_populates="screenshots") + + class Save(RomAsset): __tablename__ = "saves" __table_args__ = {"extend_existing": True} @@ -71,8 +79,9 @@ class Save(RomAsset): from handler.database import db_screenshot_handler return db_screenshot_handler.get_screenshot( - filename_no_ext=self.file_name_no_ext, + filename_no_ext=self.file_name, rom_id=self.rom_id, + user_id=self.user_id, ) @@ -90,14 +99,7 @@ class State(RomAsset): from handler.database import db_screenshot_handler return db_screenshot_handler.get_screenshot( - filename_no_ext=self.file_name_no_ext, + filename_no_ext=self.file_name, rom_id=self.rom_id, + user_id=self.user_id, ) - - -class Screenshot(RomAsset): - __tablename__ = "screenshots" - __table_args__ = {"extend_existing": True} - - rom: Mapped[Rom] = relationship(lazy="joined", back_populates="screenshots") - user: Mapped[User] = relationship(lazy="joined", back_populates="screenshots") diff --git a/backend/tests/endpoints/test_assets.py b/backend/tests/endpoints/test_assets.py index efe1c527b..4eadbeb68 100644 --- a/backend/tests/endpoints/test_assets.py +++ b/backend/tests/endpoints/test_assets.py @@ -3,6 +3,12 @@ from fastapi import status from fastapi.testclient import TestClient from main import app +from handler.database import db_save_handler, db_screenshot_handler, db_state_handler +from models.assets import Save, Screenshot, State +from models.platform import Platform +from models.rom import Rom +from models.user import User + @pytest.fixture def client(): @@ -32,3 +38,225 @@ def test_delete_states(client, access_token, state): body = response.json() assert len(body) == 1 + + +def test_get_states_prefers_exact_matching_screenshot_filename( + client: TestClient, + access_token: str, + rom: Rom, + platform: Platform, + admin_user: User, +): + state_1 = db_state_handler.add_state( + State( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state1", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="state1", + emulator="retroarch", + file_path=f"{platform.slug}/states/retroarch", + file_size_bytes=1, + ) + ) + state_2 = db_state_handler.add_state( + State( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state2", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="state2", + emulator="retroarch", + file_path=f"{platform.slug}/states/retroarch", + file_size_bytes=1, + ) + ) + + # Ambiguous fallback screenshot stem (`test_game`) that used to be picked for both. + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state.auto.png", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state1.png", + file_name_no_tags="test_game.state1", + file_name_no_ext="test_game.state1", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state2.png", + file_name_no_tags="test_game.state2", + file_name_no_ext="test_game.state2", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + + response = client.get( + "/api/states", + headers={"Authorization": f"Bearer {access_token}"}, + params={"rom_id": rom.id}, + ) + assert response.status_code == status.HTTP_200_OK + + states_by_id = {item["id"]: item for item in response.json()} + assert states_by_id[state_1.id]["screenshot"]["file_name"] == "test_game.state1.png" + assert states_by_id[state_2.id]["screenshot"]["file_name"] == "test_game.state2.png" + + +def test_get_states_screenshot_match_is_scoped_by_user( + client: TestClient, + access_token: str, + rom: Rom, + platform: Platform, + admin_user: User, + editor_user: User, +): + state = db_state_handler.add_state( + State( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state1", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="state1", + emulator="retroarch", + file_path=f"{platform.slug}/states/retroarch", + file_size_bytes=1, + ) + ) + + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=editor_user.id, + file_name="test_game.state1.png", + file_name_no_tags="test_game.state1", + file_name_no_ext="test_game.state1", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state1.png", + file_name_no_tags="test_game.state1", + file_name_no_ext="test_game.state1", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + + response = client.get( + f"/api/states/{state.id}", + headers={"Authorization": f"Bearer {access_token}"}, + ) + assert response.status_code == status.HTTP_200_OK + assert response.json()["screenshot"]["user_id"] == admin_user.id + + +def test_get_saves_prefers_exact_matching_screenshot_filename( + client: TestClient, + access_token: str, + rom: Rom, + platform: Platform, + admin_user: User, +): + save_1 = db_save_handler.add_save( + Save( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state1", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="state1", + emulator="retroarch", + file_path=f"{platform.slug}/saves/retroarch", + file_size_bytes=1, + ) + ) + save_2 = db_save_handler.add_save( + Save( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state2", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="state2", + emulator="retroarch", + file_path=f"{platform.slug}/saves/retroarch", + file_size_bytes=1, + ) + ) + + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state.auto.png", + file_name_no_tags="test_game", + file_name_no_ext="test_game", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state1.png", + file_name_no_tags="test_game.state1", + file_name_no_ext="test_game.state1", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_name="test_game.state2.png", + file_name_no_tags="test_game.state2", + file_name_no_ext="test_game.state2", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) + ) + + response = client.get( + "/api/saves", + headers={"Authorization": f"Bearer {access_token}"}, + params={"rom_id": rom.id}, + ) + assert response.status_code == status.HTTP_200_OK + + saves_by_id = {item["id"]: item for item in response.json()} + assert saves_by_id[save_1.id]["screenshot"]["file_name"] == "test_game.state1.png" + assert saves_by_id[save_2.id]["screenshot"]["file_name"] == "test_game.state2.png" From bbb1ba3ec0ecafb3803a20484ffd2319a1349f67 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 19 Feb 2026 09:36:12 -0500 Subject: [PATCH 03/28] cahanges from bot review --- backend/models/assets.py | 4 +- backend/tests/endpoints/test_assets.py | 126 +++++++++++-------------- 2 files changed, 58 insertions(+), 72 deletions(-) diff --git a/backend/models/assets.py b/backend/models/assets.py index 95fc2d9e5..0027b0265 100644 --- a/backend/models/assets.py +++ b/backend/models/assets.py @@ -79,7 +79,7 @@ class Save(RomAsset): from handler.database import db_screenshot_handler return db_screenshot_handler.get_screenshot( - filename_no_ext=self.file_name, + filename_no_ext=self.file_name, # Match state filename against screenshot filename stem rom_id=self.rom_id, user_id=self.user_id, ) @@ -99,7 +99,7 @@ class State(RomAsset): from handler.database import db_screenshot_handler return db_screenshot_handler.get_screenshot( - filename_no_ext=self.file_name, + filename_no_ext=self.file_name, # Match state filename against screenshot filename stem rom_id=self.rom_id, user_id=self.user_id, ) diff --git a/backend/tests/endpoints/test_assets.py b/backend/tests/endpoints/test_assets.py index 4eadbeb68..42441be35 100644 --- a/backend/tests/endpoints/test_assets.py +++ b/backend/tests/endpoints/test_assets.py @@ -75,42 +75,35 @@ def test_get_states_prefers_exact_matching_screenshot_filename( ) # Ambiguous fallback screenshot stem (`test_game`) that used to be picked for both. - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state.auto.png", - file_name_no_tags="test_game", - file_name_no_ext="test_game", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, + screenshots_data = [ + { + "file_name": "test_game.state.auto.png", + "file_name_no_tags": "test_game", + "file_name_no_ext": "test_game", + }, + { + "file_name": "test_game.state1.png", + "file_name_no_tags": "test_game.state1", + "file_name_no_ext": "test_game.state1", + }, + { + "file_name": "test_game.state2.png", + "file_name_no_tags": "test_game.state2", + "file_name_no_ext": "test_game.state2", + }, + ] + + for data in screenshots_data: + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + **data, + ) ) - ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state1.png", - file_name_no_tags="test_game.state1", - file_name_no_ext="test_game.state1", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, - ) - ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state2.png", - file_name_no_tags="test_game.state2", - file_name_no_ext="test_game.state2", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, - ) - ) response = client.get( "/api/states", @@ -213,42 +206,35 @@ def test_get_saves_prefers_exact_matching_screenshot_filename( ) ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state.auto.png", - file_name_no_tags="test_game", - file_name_no_ext="test_game", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, + screenshots_data = [ + { + "file_name": "test_game.state.auto.png", + "file_name_no_tags": "test_game", + "file_name_no_ext": "test_game", + }, + { + "file_name": "test_game.state1.png", + "file_name_no_tags": "test_game.state1", + "file_name_no_ext": "test_game.state1", + }, + { + "file_name": "test_game.state2.png", + "file_name_no_tags": "test_game.state2", + "file_name_no_ext": "test_game.state2", + }, + ] + + for data in screenshots_data: + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=admin_user.id, + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + **data, + ) ) - ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state1.png", - file_name_no_tags="test_game.state1", - file_name_no_ext="test_game.state1", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, - ) - ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state2.png", - file_name_no_tags="test_game.state2", - file_name_no_ext="test_game.state2", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, - ) - ) response = client.get( "/api/saves", From d80ac3ea7785968c68cc1e8542b2ff6328e955a9 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 19 Feb 2026 09:36:38 -0500 Subject: [PATCH 04/28] 1 more bot change --- backend/tests/endpoints/test_assets.py | 35 +++++++++----------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/backend/tests/endpoints/test_assets.py b/backend/tests/endpoints/test_assets.py index 42441be35..db7c02e1a 100644 --- a/backend/tests/endpoints/test_assets.py +++ b/backend/tests/endpoints/test_assets.py @@ -139,30 +139,19 @@ def test_get_states_screenshot_match_is_scoped_by_user( ) ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=editor_user.id, - file_name="test_game.state1.png", - file_name_no_tags="test_game.state1", - file_name_no_ext="test_game.state1", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, + for user in [editor_user, admin_user]: + db_screenshot_handler.add_screenshot( + Screenshot( + rom_id=rom.id, + user_id=user.id, + file_name="test_game.state1.png", + file_name_no_tags="test_game.state1", + file_name_no_ext="test_game.state1", + file_extension="png", + file_path=f"{platform.slug}/screenshots", + file_size_bytes=1, + ) ) - ) - db_screenshot_handler.add_screenshot( - Screenshot( - rom_id=rom.id, - user_id=admin_user.id, - file_name="test_game.state1.png", - file_name_no_tags="test_game.state1", - file_name_no_ext="test_game.state1", - file_extension="png", - file_path=f"{platform.slug}/screenshots", - file_size_bytes=1, - ) - ) response = client.get( f"/api/states/{state.id}", From 646107872168afdddda0d168cfcd49f1bbb0991d Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 19 Feb 2026 10:18:56 -0500 Subject: [PATCH 05/28] loosen rules around fetch matching screenshots --- backend/endpoints/saves.py | 4 +- backend/endpoints/screenshots.py | 2 +- backend/endpoints/states.py | 4 +- .../handler/database/screenshots_handler.py | 57 ++++++++++--------- backend/models/assets.py | 6 +- .../src/components/common/Game/AssetCard.vue | 7 +-- .../components/common/Game/Card/Related.vue | 2 +- 7 files changed, 42 insertions(+), 40 deletions(-) diff --git a/backend/endpoints/saves.py b/backend/endpoints/saves.py index f20888be5..bfcc0cc6f 100644 --- a/backend/endpoints/saves.py +++ b/backend/endpoints/saves.py @@ -265,7 +265,7 @@ async def add_save( rom_id=rom.id, ) db_screenshot = db_screenshot_handler.get_screenshot( - filename=screenshotFile.filename, + file_name=screenshotFile.filename, rom_id=rom.id, user_id=request.user.id, ) @@ -481,7 +481,7 @@ async def update_save(request: Request, id: int) -> SaveSchema: rom_id=db_save.rom.id, ) db_screenshot = db_screenshot_handler.get_screenshot( - filename=screenshotFile.filename, + file_name=screenshotFile.filename, rom_id=db_save.rom.id, user_id=request.user.id, ) diff --git a/backend/endpoints/screenshots.py b/backend/endpoints/screenshots.py index dc70e5a9d..a83e8bc5d 100644 --- a/backend/endpoints/screenshots.py +++ b/backend/endpoints/screenshots.py @@ -67,7 +67,7 @@ async def add_screenshot( rom_id=rom.id, ) db_screenshot = db_screenshot_handler.get_screenshot( - filename=screenshotFile.filename, + file_name=screenshotFile.filename, rom_id=rom.id, user_id=current_user.id, ) diff --git a/backend/endpoints/states.py b/backend/endpoints/states.py index a2df7b850..691c8ae0f 100644 --- a/backend/endpoints/states.py +++ b/backend/endpoints/states.py @@ -111,7 +111,7 @@ async def add_state( rom_id=rom.id, ) db_screenshot = db_screenshot_handler.get_screenshot( - filename=screenshotFile.filename, + file_name=screenshotFile.filename, rom_id=rom.id, user_id=request.user.id, ) @@ -221,7 +221,7 @@ async def update_state(request: Request, id: int) -> StateSchema: rom_id=db_state.rom.id, ) db_screenshot = db_screenshot_handler.get_screenshot( - filename=screenshotFile.filename, + file_name=screenshotFile.filename, rom_id=db_state.rom.id, user_id=request.user.id, ) diff --git a/backend/handler/database/screenshots_handler.py b/backend/handler/database/screenshots_handler.py index aa7713890..ed3abcdae 100644 --- a/backend/handler/database/screenshots_handler.py +++ b/backend/handler/database/screenshots_handler.py @@ -1,7 +1,8 @@ from collections.abc import Sequence from functools import partial -from sqlalchemy import delete, select, update +import pydash +from sqlalchemy import delete, or_, select, update from sqlalchemy.orm import Session from sqlalchemy.sql import Delete, Select, Update @@ -16,27 +17,32 @@ class DBScreenshotsHandler(DBBaseHandler): self, query: QueryT, *, + rom_id: int, + user_id: int, filenames: Sequence[str] = (), - filenames_no_ext: Sequence[str] = (), - rom_ids: Sequence[int] = (), - user_ids: Sequence[int] = (), exclude_filenames: Sequence[str] = (), - exclude_filenames_no_ext: Sequence[str] = (), ) -> QueryT: + query = query.filter( + Screenshot.rom_id == rom_id, + Screenshot.user_id == user_id, + ) + if filenames: - query = query.filter(Screenshot.file_name.in_(filenames)) - if filenames_no_ext: - query = query.filter(Screenshot.file_name_no_ext.in_(filenames_no_ext)) - if rom_ids: - query = query.filter(Screenshot.rom_id.in_(rom_ids)) - if user_ids: - query = query.filter(Screenshot.user_id.in_(user_ids)) - if exclude_filenames: - query = query.filter(Screenshot.file_name.not_in(exclude_filenames)) - if exclude_filenames_no_ext: query = query.filter( - Screenshot.file_name_no_ext.not_in(exclude_filenames_no_ext) + or_( + Screenshot.file_name.in_(filenames), + Screenshot.file_name_no_ext.in_(filenames), + ) ) + + if exclude_filenames: + query = query.filter( + or_( + Screenshot.file_name.not_in(filenames), + Screenshot.file_name_no_ext.not_in(filenames), + ) + ) + return query @begin_session @@ -51,18 +57,17 @@ class DBScreenshotsHandler(DBBaseHandler): def get_screenshot( self, *, - filename: str | None = None, - filename_no_ext: str | None = None, - rom_id: int | None = None, - user_id: int | None = None, + rom_id: int, + user_id: int, + file_name: str, + file_name_no_ext: str | None = None, session: Session = None, # type: ignore ) -> Screenshot | None: query = self.filter( select(Screenshot), - filenames=[filename] if filename is not None else (), - filenames_no_ext=[filename_no_ext] if filename_no_ext is not None else (), - rom_ids=[rom_id] if rom_id is not None else (), - user_ids=[user_id] if user_id is not None else (), + rom_id=rom_id, + user_id=user_id, + filenames=pydash.compact([file_name, file_name_no_ext]), ) return session.scalars(query.limit(1)).first() @@ -111,8 +116,8 @@ class DBScreenshotsHandler(DBBaseHandler): ) -> Sequence[Screenshot]: query_fn = partial( self.filter, - rom_ids=[rom_id], - user_ids=[user_id], + rom_id=rom_id, + user_id=user_id, exclude_filenames=screenshots_to_keep, ) diff --git a/backend/models/assets.py b/backend/models/assets.py index 0027b0265..f26eb18fb 100644 --- a/backend/models/assets.py +++ b/backend/models/assets.py @@ -79,9 +79,10 @@ class Save(RomAsset): from handler.database import db_screenshot_handler return db_screenshot_handler.get_screenshot( - filename_no_ext=self.file_name, # Match state filename against screenshot filename stem rom_id=self.rom_id, user_id=self.user_id, + file_name=self.file_name, # Match state filename against screenshot filename stem + file_name_no_ext=self.file_name_no_ext, ) @@ -99,7 +100,8 @@ class State(RomAsset): from handler.database import db_screenshot_handler return db_screenshot_handler.get_screenshot( - filename_no_ext=self.file_name, # Match state filename against screenshot filename stem rom_id=self.rom_id, user_id=self.user_id, + file_name=self.file_name, # Match state filename against screenshot filename stem + file_name_no_ext=self.file_name_no_ext, ) diff --git a/frontend/src/components/common/Game/AssetCard.vue b/frontend/src/components/common/Game/AssetCard.vue index 058721804..ba3db9eb5 100644 --- a/frontend/src/components/common/Game/AssetCard.vue +++ b/frontend/src/components/common/Game/AssetCard.vue @@ -84,12 +84,7 @@ function handleDelete(event: Event) { @click="handleClick" > - - + { romId.value = response.data.id; }) .catch((error) => { - console.error("Error fetching ROM by metadata provider:", error); + console.warn("Error fetching ROM by metadata provider:", error); // Keep romId.value as null to fall back to IGDB link }); }); From d3aa1b7c44d50950935fac8024a2738f2bb1c54d Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 19 Feb 2026 10:27:17 -0500 Subject: [PATCH 06/28] prefer exact stem matches first --- backend/handler/database/screenshots_handler.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/backend/handler/database/screenshots_handler.py b/backend/handler/database/screenshots_handler.py index ed3abcdae..585359539 100644 --- a/backend/handler/database/screenshots_handler.py +++ b/backend/handler/database/screenshots_handler.py @@ -2,7 +2,7 @@ from collections.abc import Sequence from functools import partial import pydash -from sqlalchemy import delete, or_, select, update +from sqlalchemy import case, delete, or_, select, update from sqlalchemy.orm import Session from sqlalchemy.sql import Delete, Select, Update @@ -38,8 +38,8 @@ class DBScreenshotsHandler(DBBaseHandler): if exclude_filenames: query = query.filter( or_( - Screenshot.file_name.not_in(filenames), - Screenshot.file_name_no_ext.not_in(filenames), + Screenshot.file_name.not_in(exclude_filenames), + Screenshot.file_name_no_ext.not_in(exclude_filenames), ) ) @@ -69,6 +69,11 @@ class DBScreenshotsHandler(DBBaseHandler): user_id=user_id, filenames=pydash.compact([file_name, file_name_no_ext]), ) + # Prefer exact stem matches first + query = query.order_by( + case((Screenshot.file_name_no_ext == file_name, 0), else_=1), + Screenshot.id.desc(), + ) return session.scalars(query.limit(1)).first() @begin_session From 2706927cbcd46501d17285027c7674c7fa4c9a2c Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 19 Feb 2026 10:32:55 -0500 Subject: [PATCH 07/28] fix bug with exclusion criteria --- backend/handler/database/screenshots_handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/handler/database/screenshots_handler.py b/backend/handler/database/screenshots_handler.py index 585359539..355c50aaa 100644 --- a/backend/handler/database/screenshots_handler.py +++ b/backend/handler/database/screenshots_handler.py @@ -37,10 +37,8 @@ class DBScreenshotsHandler(DBBaseHandler): if exclude_filenames: query = query.filter( - or_( - Screenshot.file_name.not_in(exclude_filenames), - Screenshot.file_name_no_ext.not_in(exclude_filenames), - ) + Screenshot.file_name.not_in(exclude_filenames), + Screenshot.file_name_no_ext.not_in(exclude_filenames), ) return query From ea95acc7294b7c55c824bb18f581f5f086b6e22e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 19:50:57 +0000 Subject: [PATCH 08/28] Bump tar from 7.5.7 to 7.5.9 in /frontend Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.7 to 7.5.9. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v7.5.7...v7.5.9) --- updated-dependencies: - dependency-name: tar dependency-version: 7.5.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- frontend/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 37d4c90a5..7d70c7733 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8439,9 +8439,9 @@ } }, "node_modules/tar": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.7.tgz", - "integrity": "sha512-fov56fJiRuThVFXD6o6/Q354S7pnWMJIVlDBYijsTNx6jKSE4pvrDTs6lUnmGvNyfJwFQQwWy3owKz1ucIhveQ==", + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.9.tgz", + "integrity": "sha512-BTLcK0xsDh2+PUe9F6c2TlRp4zOOBMTkoQHQIWSIzI0R7KG46uEwq4OPk2W7bZcprBMsuaeFsqwYr7pjh6CuHg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { From 1dfce1c06ab26082b24b732862c525d96056c4da Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Fri, 20 Feb 2026 14:55:03 -0500 Subject: [PATCH 09/28] include syncthing-sync in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7d28fe771..b2435b9d7 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ Here are a few projects maintained by members of our community. Please note that - [romm-comm][romm-comm-discord-bot]: Discord bot by @idio-sync - [GGRequestz][ggrequestz]: Game discovery and request tool by @XTREEMMAK +- [Syncthing sync][syncthing-sync]: Small tool to push a Syncthing library to RomM by @amn-96 Join us on Discord, where you can ask questions, submit ideas, get help, showcase your collection, and discuss RomM with other users. @@ -158,6 +159,7 @@ Here are a few projects that we think you might like: [playnite-app]: https://github.com/rommapp/playnite-plugin [muos-app]: https://github.com/rommapp/muos-app [ggrequestz]: https://github.com/XTREEMMAK/ggrequestz +[syncthing-sync]: https://github.com/amn-96/romm_syncthing_sync [romm-client]: https://github.com/chaun14/romm-client [romm-retroarch-sync]: https://github.com/Covin90/romm-retroarch-sync [rommate]: https://github.com/brenoprata10/rommate From 7acdd2931f0589d10ac8a59e9d90fbb74d2f54c7 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 21 Feb 2026 10:34:07 -0500 Subject: [PATCH 10/28] tweak the readme to highlight first-party aopps --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b2435b9d7..961612ac8 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ RomM (ROM Manager) allows you to scan, enrich, browse and play your game collect - Metadata available for [400+ platforms][docs-supported-platforms] - Play games directly from the browser using [EmulatorJS][docs-emulatorjs] and [RuffleRS][docs-rufflers] - Share your library with friends with limited access and permissions -- Official apps for [Playnite][playnite-app] and [muOS][muos-app] +- Official apps for [Playnite][playnite-app], [Android][argosy-launcher] and [CFWs][grout] - Supports multi-disk games, DLCs, mods, hacks, patches, and manuals - Parse and filter by [tags][docs-tag-support] in filenames - View, upload, update, and delete games from any modern web browser @@ -53,13 +53,14 @@ Here are a few projects maintained by members of our community. Please note that ### Mobile -- [romm-mobile][romm-mobile]: Android (and soon iOS) app by @mattsays +- 🔷 [Argosy][argosy-launcher]: Native client for installing and launching games by @tmgast - [romm-ios-app][romm-ios-app]: Native iOS app by @ilyas-hallak +- [romm-mobile][romm-mobile]: Android (and soon iOS) app by @mattsays - [romm-android][romm-android]: Android app by @samwelnella -- [Argosy][argosy-launcher]: Native client for installing and launching games by @tmgast ### Desktop +- 🔷 [Playnite plugin][playnite-app]: Library plugin for Playnite by @gantoine - [RommBrowser][romm-browser]: Electron client by @smurflabs - [RetroArch Sync][romm-retroarch-sync]: Sync RetroArch library with RomM by @Covin90 - [RomMate][rommate]: Desktop app for browsing your collection by @brenoprata10 @@ -67,7 +68,7 @@ Here are a few projects maintained by members of our community. Please note that ### Handhelds -- [Grout][grout]: Download client for muOS and NextUI by @UncleJunVIP +- 🔷 [Grout][grout]: Download client for muOS and NextUI by @UncleJunVIP - [DeckRommSync][deck-romm-sync]: SteamOS downloader and syncer by @PeriBluGaming - [SwitchRomM][switch-romm]: Homebrew NRO for Switch by @Shalasere @@ -77,6 +78,8 @@ Here are a few projects maintained by members of our community. Please note that - [GGRequestz][ggrequestz]: Game discovery and request tool by @XTREEMMAK - [Syncthing sync][syncthing-sync]: Small tool to push a Syncthing library to RomM by @amn-96 +[🔷] Official first-party app + Join us on Discord, where you can ask questions, submit ideas, get help, showcase your collection, and discuss RomM with other users. [![discord-invite-img]][discord-invite] @@ -157,7 +160,6 @@ Here are a few projects that we think you might like: [romm-browser]: https://github.com/smurflabs/RommBrowser/ [romm-mobile]: https://github.com/mattsays/romm-mobile [playnite-app]: https://github.com/rommapp/playnite-plugin -[muos-app]: https://github.com/rommapp/muos-app [ggrequestz]: https://github.com/XTREEMMAK/ggrequestz [syncthing-sync]: https://github.com/amn-96/romm_syncthing_sync [romm-client]: https://github.com/chaun14/romm-client From e1b5c4cc53703b6c9ca5353f05f8961e58fca440 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 21 Feb 2026 10:35:01 -0500 Subject: [PATCH 11/28] link argosy to new rommapp repo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 961612ac8..3aab9d798 100644 --- a/README.md +++ b/README.md @@ -168,4 +168,4 @@ Here are a few projects that we think you might like: [romm-android]: https://github.com/samwelnella/romm-android [grout]: https://github.com/rommapp/grout [romm-ios-app]: https://github.com/ilyas-hallak/romm-ios-app -[argosy-launcher]: https://github.com/nendotools/argosy-launcher +[argosy-launcher]: https://github.com/rommapp/argosy-launcher From 5c95dff2d6df1b0f8aac0620ce46e0bad59fde23 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Sat, 21 Feb 2026 11:27:56 -0600 Subject: [PATCH 12/28] Implement keyboard locking for EJS fullscreen mode --- frontend/src/views/Player/EmulatorJS/Base.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/views/Player/EmulatorJS/Base.vue b/frontend/src/views/Player/EmulatorJS/Base.vue index 9e7f4c86d..5ac7000ed 100644 --- a/frontend/src/views/Player/EmulatorJS/Base.vue +++ b/frontend/src/views/Player/EmulatorJS/Base.vue @@ -173,6 +173,22 @@ onMounted(async () => { emitter?.on("saveSelected", selectSave); emitter?.on("stateSelected", selectState); + document.addEventListener("fullscreenchange", () => { + if (fullScreenOnPlay.value && "keyboard" in navigator) { + if (document.fullscreenElement && navigator.keyboard.lock) { + navigator.keyboard.lock([ + "Escape", + "Tab", + "AltLeft", + "ControlLeft", + "MetaLeft", + ]); + } else if (!document.fullscreenElement && navigator.keyboard.unlock) { + navigator.keyboard.unlock(); + } + } + }); + // Determine default tab and selection (mutually exclusive) const compatibleStates = rom.value.user_states.filter( (s) => !s.emulator || s.emulator === supportedCores.value[0], From cccee5ab578b9117a23c22d59f3a77e953e0c956 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 21 Feb 2026 12:48:37 -0500 Subject: [PATCH 13/28] pin nginx to 1.29.5 --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1678ca376..e7481454e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,7 +19,7 @@ ARG PYTHON_VERSION=3.13 ARG PYTHON_ALPINE_SHA256=bb1f2fdb1065c85468775c9d680dcd344f6442a2d1181ef7916b60a623f11d40 ARG NODE_VERSION=24.13 ARG NODE_ALPINE_SHA256=4f696fbf39f383c1e486030ba6b289a5d9af541642fc78ab197e584a113b9c03 -ARG NGINX_VERSION=1.29.2 +ARG NGINX_VERSION=1.29.5 ARG NGINX_SHA256=1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d7702ba ARG UV_VERSION=0.8.24 ARG UV_SHA256=779f3d612539b4696a1b228724cd79b6e8b8604075a9ac7d15378bccf4053373 From 9b51df96a8fb3395ada1c8bebf44b92b42a03221 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Sat, 21 Feb 2026 14:25:07 -0600 Subject: [PATCH 14/28] Add config option for keyboard lock in EJS --- backend/config/config_manager.py | 11 +++++++++++ backend/endpoints/configs.py | 1 + backend/endpoints/responses/config.py | 1 + examples/config.example.yml | 1 + frontend/src/__generated__/models/ConfigResponse.ts | 1 + frontend/src/stores/config.ts | 1 + frontend/src/views/Player/EmulatorJS/Base.vue | 10 +++++----- 7 files changed, 21 insertions(+), 5 deletions(-) diff --git a/backend/config/config_manager.py b/backend/config/config_manager.py index 79ec338fd..6d0cddf8b 100644 --- a/backend/config/config_manager.py +++ b/backend/config/config_manager.py @@ -114,6 +114,7 @@ class Config: HIGH_PRIO_STRUCTURE_PATH: str EJS_DEBUG: bool EJS_CACHE_LIMIT: int | None + EJS_KEYBOARD_LOCK: bool EJS_DISABLE_AUTO_UNLOAD: bool EJS_DISABLE_BATCH_BOOTUP: bool EJS_NETPLAY_ENABLED: bool @@ -275,6 +276,9 @@ class ConfigManager: EJS_CACHE_LIMIT=pydash.get( self._raw_config, "emulatorjs.cache_limit", None ), + EJS_KEYBOARD_LOCK=pydash.get( + self._raw_config, "emulatorjs.keyboard_lock", False + ), EJS_DISABLE_AUTO_UNLOAD=pydash.get( self._raw_config, "emulatorjs.disable_auto_unload", False ), @@ -475,6 +479,12 @@ class ConfigManager: ) sys.exit(3) + if not isinstance(self.config.EJS_KEYBOARD_LOCK, bool): + log.critical( + "Invalid config.yml: emulatorjs.keyboard_lock must be a boolean" + ) + sys.exit(3) + if not isinstance(self.config.EJS_DISABLE_AUTO_UNLOAD, bool): log.critical( "Invalid config.yml: emulatorjs.disable_auto_unload must be a boolean" @@ -601,6 +611,7 @@ class ConfigManager: "emulatorjs": { "debug": self.config.EJS_DEBUG, "cache_limit": self.config.EJS_CACHE_LIMIT, + "keyboard_lock": self.config.EJS_KEYBOARD_LOCK, "disable_auto_unload": self.config.EJS_DISABLE_AUTO_UNLOAD, "disable_batch_bootup": self.config.EJS_DISABLE_BATCH_BOOTUP, "netplay": { diff --git a/backend/endpoints/configs.py b/backend/endpoints/configs.py index 712025260..1e9b2fa20 100644 --- a/backend/endpoints/configs.py +++ b/backend/endpoints/configs.py @@ -37,6 +37,7 @@ def get_config() -> ConfigResponse: SKIP_HASH_CALCULATION=cfg.SKIP_HASH_CALCULATION, EJS_DEBUG=cfg.EJS_DEBUG, EJS_CACHE_LIMIT=cfg.EJS_CACHE_LIMIT, + EJS_KEYBOARD_LOCK=cfg.EJS_KEYBOARD_LOCK, EJS_DISABLE_AUTO_UNLOAD=cfg.EJS_DISABLE_AUTO_UNLOAD, EJS_DISABLE_BATCH_BOOTUP=cfg.EJS_DISABLE_BATCH_BOOTUP, EJS_NETPLAY_ENABLED=cfg.EJS_NETPLAY_ENABLED, diff --git a/backend/endpoints/responses/config.py b/backend/endpoints/responses/config.py index d9ebe126e..66e28b090 100644 --- a/backend/endpoints/responses/config.py +++ b/backend/endpoints/responses/config.py @@ -17,6 +17,7 @@ class ConfigResponse(TypedDict): SKIP_HASH_CALCULATION: bool EJS_DEBUG: bool EJS_CACHE_LIMIT: int | None + EJS_KEYBOARD_LOCK: bool EJS_DISABLE_AUTO_UNLOAD: bool EJS_DISABLE_BATCH_BOOTUP: bool EJS_NETPLAY_ENABLED: bool diff --git a/examples/config.example.yml b/examples/config.example.yml index cd65fd61d..04e382537 100644 --- a/examples/config.example.yml +++ b/examples/config.example.yml @@ -137,6 +137,7 @@ # emulatorjs: # debug: true # Available options will be logged to the browser console # cache_limit: null # Cache limit per ROM (in bytes) +# keyboard_lock: false # Should keyboard be locked in fullscreen? # disable_batch_bootup: false # disable_auto_unload: false # settings: diff --git a/frontend/src/__generated__/models/ConfigResponse.ts b/frontend/src/__generated__/models/ConfigResponse.ts index 5b9cf4681..114cee971 100644 --- a/frontend/src/__generated__/models/ConfigResponse.ts +++ b/frontend/src/__generated__/models/ConfigResponse.ts @@ -18,6 +18,7 @@ export type ConfigResponse = { SKIP_HASH_CALCULATION: boolean; EJS_DEBUG: boolean; EJS_CACHE_LIMIT: (number | null); + EJS_KEYBOARD_LOCK: boolean; EJS_DISABLE_AUTO_UNLOAD: boolean; EJS_DISABLE_BATCH_BOOTUP: boolean; EJS_NETPLAY_ENABLED: boolean; diff --git a/frontend/src/stores/config.ts b/frontend/src/stores/config.ts index 926083a92..da4e8efe5 100644 --- a/frontend/src/stores/config.ts +++ b/frontend/src/stores/config.ts @@ -26,6 +26,7 @@ const defaultConfig = { EJS_DEBUG: false, EJS_NETPLAY_ENABLED: false, EJS_CACHE_LIMIT: null, + EJS_KEYBOARD_LOCK: false, EJS_DISABLE_AUTO_UNLOAD: false, EJS_DISABLE_BATCH_BOOTUP: false, EJS_NETPLAY_ICE_SERVERS: [], diff --git a/frontend/src/views/Player/EmulatorJS/Base.vue b/frontend/src/views/Player/EmulatorJS/Base.vue index 5ac7000ed..2be647501 100644 --- a/frontend/src/views/Player/EmulatorJS/Base.vue +++ b/frontend/src/views/Player/EmulatorJS/Base.vue @@ -62,7 +62,7 @@ async function onPlay() { fullScreen.value = fullScreenOnPlay.value; playing.value = true; - const { EJS_NETPLAY_ENABLED } = configStore.config; + const { EJS_NETPLAY_ENABLED, EJS_KEYBOARD_LOCK } = configStore.config; const EMULATORJS_VERSION = EJS_NETPLAY_ENABLED ? "nightly" : "4.2.3"; const LOCAL_PATH = "/assets/emulatorjs/data"; const CDN_PATH = `https://cdn.emulatorjs.org/${EMULATORJS_VERSION}/data`; @@ -173,8 +173,8 @@ onMounted(async () => { emitter?.on("saveSelected", selectSave); emitter?.on("stateSelected", selectState); - document.addEventListener("fullscreenchange", () => { - if (fullScreenOnPlay.value && "keyboard" in navigator) { + if (configStore.config.EJS_KEYBOARD_LOCK && "keyboard" in navigator) { + document.addEventListener("fullscreenchange", () => { if (document.fullscreenElement && navigator.keyboard.lock) { navigator.keyboard.lock([ "Escape", @@ -186,8 +186,8 @@ onMounted(async () => { } else if (!document.fullscreenElement && navigator.keyboard.unlock) { navigator.keyboard.unlock(); } - } - }); + }); + } // Determine default tab and selection (mutually exclusive) const compatibleStates = rom.value.user_states.filter( From 5d21c6fefe1e2c8ca7d59e42e3c0aae5523d9bb5 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Sat, 21 Feb 2026 14:34:49 -0600 Subject: [PATCH 15/28] Add tests --- backend/tests/config/fixtures/config/config.yml | 1 + backend/tests/config/test_config_loader.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/backend/tests/config/fixtures/config/config.yml b/backend/tests/config/fixtures/config/config.yml index 8975f4c94..8b4997b17 100644 --- a/backend/tests/config/fixtures/config/config.yml +++ b/backend/tests/config/fixtures/config/config.yml @@ -55,6 +55,7 @@ scan: emulatorjs: debug: true cache_limit: 1000 + keyboard_lock: true disable_auto_unload: true disable_batch_bootup: true netplay: diff --git a/backend/tests/config/test_config_loader.py b/backend/tests/config/test_config_loader.py index c1792858a..984c9fb75 100644 --- a/backend/tests/config/test_config_loader.py +++ b/backend/tests/config/test_config_loader.py @@ -29,6 +29,7 @@ def test_config_loader(): assert loader.config.EJS_DISABLE_AUTO_UNLOAD assert loader.config.EJS_DISABLE_BATCH_BOOTUP assert loader.config.EJS_CACHE_LIMIT == 1000 + assert loader.config.EJS_KEYBOARD_LOCK assert loader.config.EJS_NETPLAY_ENABLED assert loader.config.EJS_NETPLAY_ICE_SERVERS == [ {"urls": "stun:stun.relay.metered.ca:80"}, @@ -80,6 +81,7 @@ def test_empty_config_loader(): assert not loader.config.SKIP_HASH_CALCULATION assert not loader.config.EJS_DEBUG assert loader.config.EJS_CACHE_LIMIT is None + assert not loader.config.EJS_KEYBOARD_LOCK assert not loader.config.EJS_DISABLE_AUTO_UNLOAD assert not loader.config.EJS_DISABLE_BATCH_BOOTUP assert not loader.config.EJS_NETPLAY_ENABLED From 6bec7de368b8254ccfa9f6447e4cd2397918dd7c Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Sat, 21 Feb 2026 16:43:41 -0600 Subject: [PATCH 16/28] Switch to useEventListener --- frontend/src/views/Player/EmulatorJS/Base.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Player/EmulatorJS/Base.vue b/frontend/src/views/Player/EmulatorJS/Base.vue index 2be647501..c4b1e9df3 100644 --- a/frontend/src/views/Player/EmulatorJS/Base.vue +++ b/frontend/src/views/Player/EmulatorJS/Base.vue @@ -1,5 +1,5 @@