Commit graph

18 commits

Author SHA1 Message Date
97c1519833 readability: rename constants, variables, extract enums across plugins
- itch: UPPER_CASE constants, CACHE_NAMESPACE, butler_process/rpc_socket/connection_state, LOGIN_METHOD enum, SETTINGS_SECTION, signal handler renames
- artprovider: UPPER_CASE constants, _enriched_meta, _find_game_dict, dead code removal, named poll intervals
- session-switch: MAX_POLL_FRAMES, _poll_for_power_menu, BUTTON_LABEL const
2026-08-19 16:41:31 -03:00
7ee08ac571 readability: extract magic constants, fix Go jargon
- goos/goarch -> os_name/arch_name (Go ecosystem jargon)
- BUTLER_USER_AGENT now reads version from plugin.json at runtime
- Added named constants: CONNECTION_TIMEOUT_ITERATIONS,
  CONNECTION_POLL_DELAY_MS, PERCENTAGE_SCALE, LAUNCH_WATCH_INTERVAL_SEC,
  UPDATE_CHECK_INTERVAL_SEC, BUTLERD_BOOT_MAX_ATTEMPTS,
  BUTLERD_BOOT_RETRY_DELAY_SEC, LAUNCH_WATCH_TIMEOUT_MS,
  EXECUTE_PERMISSION_BIT
- Removed BYTES_PER_MB (inline 1024 * 1024 is clearer)
2026-08-19 16:20:20 -03:00
e2a4464d0d Add password login and collection visibility settings
All checks were successful
Build plugin / build (push) Successful in 1m10s
2026-08-17 02:00:39 -03:00
f4aa8fd1e0 Remove boxart download system
All checks were successful
Build plugin / build (push) Successful in 1m11s
2026-08-16 20:23:45 -03:00
404ee87a64 Enriched metadata, per-layout boxart, install failure UI, and modal focus fix (v0.1.31) 2026-08-16 15:33:36 -03:00
ff2ae68d9e Add install locations, upload picker, update flags, move, and launch hooks (v0.1.24) 2026-08-10 00:04:37 -03:00
a024907696 Launch LÖVE/Java games and surface launch failures as a popup (v0.1.23) 2026-08-09 23:05:04 -03:00
8b393090ca Fix stale cache launches, FNF runtime deps, and uninstall focus death (v0.1.20)
- Inject the user-level shared-libs dir into LD_LIBRARY_PATH for installed
  games so FNF finds libvlc.so.5 (idempotent, avoids duplicate entries)
- Reconcile cached installs against butlerd's live caves: normalize
  int/float ids, wait for butlerd when the cache claims installs, keep the
  cache when Fetch.Caves fails, and re-save the reconciled cache
- get_caves() returns null on RPC error (vs [] for genuinely nothing
  installed) so callers can tell a transient failure apart
- Patch freshly installed/updated items in place so the Play button launches
  the new binary immediately
- Drop and re-add items through the LibraryManager so the library menu
  re-renders after install/uninstall (core handler is a no-op upstream)
- Restore launch-page focus after uninstall by searching get_tree().root:
  get_tree().current_scene is null in OGPU, so the old fix silently no-oped
  and left the D-pad dead
2026-08-09 15:43:30 -03:00
8a2d8b5374 Resolve launch commands from butlerd's install receipt (v0.1.12)
The old `find | head -n 1` guess picked the wrong binary for many games
(e.g. a Unity LinuxPlayer_s.debug stub instead of the real .x64 launcher,
or nothing at all for .love games), so most fresh installs failed to
launch. Read .itch/receipt.json.gz (butlerd writes the authoritative
launch target on every install) and use its resolved command, with a
smarter best-effort scan as fallback. Re-resolve commands on cache load
so existing installs are fixed without a reinstall.
2026-08-08 00:00:26 -03:00
3473073582 Install games to persistent user://butler/games and reconcile orphaned caves
OGPU moves the whole extracted plugin directory (plugins/itch/) to trash
on every plugin update, so keeping installed games under
user://plugins/itch/games meant game files silently vanished on update
while butler.db kept the (now orphaned) cave. That made fresh installs
fail with butlerd's "That upload is already installed!" and broke
launches for games whose files were gone.

- New installs go to user://butler/games (persistent, next to butler.db)
  via a reworked _ensure_install_location; prereqs move there too
- _install/_update reconcile the cave first: a cave whose install folder
  no longer exists is uninstalled before a fresh (re)install, and a valid
  existing cave turns the request into an update instead
- _make_item treats missing-folder caves as not installed, and the cache
  path re-checks cwd so stale caches don't render a broken Play button
- orphaned caves are cleaned out of butler.db in the background on library
  load
- drop the plugin's global InstallLocation class stub: it collided with
  OGPU core's nested Library.InstallLocation and broke compilation on a
  cold .godot cache (the unused install_to arg is now untyped)
- Makefile: compute preset number with shell arithmetic instead of bc
2026-08-07 22:48:17 -03:00
7d5dedc0b9 Hide games with no platform info while the platform filter is on (v0.1.10) 2026-08-07 22:19:51 -03:00
b0183b7c20 Add option to filter games not available on the current platform
The new 'Only show games available on this platform' checkbox in the
plugin settings drops games whose platforms don't include the OS
OpenGamepadUI is running on (e.g. Windows-only games on Linux). Games
with no platform info at all (HTML5) are kept since there's nothing to
filter on. The setting is read on every library load, so toggling it
reloads the itch.io library without a restart.
2026-08-07 18:41:39 -03:00
e48a0b501d Emit install/update/uninstall completion and forward install progress to the base Library contract so OGPU's InstallManager and launch menu stop hanging at 0% 2026-08-06 19:13:34 -03:00
e9f25d104b Merge games from the profile's itch.io collections into the library (deduped against owned games) so bookmarked free games show up 2026-08-06 18:52:55 -03:00
9cd4cb32e3 Use itch.io's stillCoverUrl for animated GIF covers so those games still get boxart (Godot can't decode GIFs) 2026-08-06 18:46:02 -03:00
a9371bdbc2 Download itch.io cover art into OGPU's local boxart dir so games show real covers instead of the placeholder 2026-08-06 18:29:47 -03:00
408991a693 Fix butlerd RPC -32700: normalize integral JSON floats to ints
Godot JSON.parse decodes every JSON number as a float, so integer ids
(7670) round-trip through JSON.stringify as 7670.0, which Go's int64
fields reject with RPC error -32700. Normalize at the parse boundary so
profile/game/upload ids serialize correctly.

Also drop the nonexistent 'fresh' parameter from Fetch.ProfileOwnedKeys.
2026-08-05 22:08:24 -03:00
3132a5015a Initial commit 2026-08-05 17:27:43 -03:00