mirror of
https://github.com/rommapp/romm.git
synced 2026-06-30 07:45:52 +00:00
LaunchBox produced file:// URIs relative to /romm/launchbox, but the resources handler resolved them under /romm/library via fs_rom_handler, so local images/manuals/screenshots were never found. Switch LaunchBox to a distinct launchbox-file:// scheme and add FSLaunchboxHandler + _resolve_local_file_uri to route each scheme to the correct root. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
261 B
Python
10 lines
261 B
Python
from pathlib import Path
|
|
|
|
from config import ROMM_BASE_PATH
|
|
from handler.filesystem.base_handler import FSHandler
|
|
|
|
|
|
class FSLaunchboxHandler(FSHandler):
|
|
def __init__(self) -> None:
|
|
super().__init__(base_path=str(Path(ROMM_BASE_PATH) / "launchbox"))
|