Commit graph

129 commits

Author SHA1 Message Date
Pat Hartl
1566172ad2 Fix parsing of primary actions in manifest, add dropdown for non-primary actions 2024-05-28 21:08:30 -05:00
Pat Hartl
9e26255df3 Pull actions from manifests and servers 2024-05-28 00:54:09 -05:00
Pat Hartl
9b2464e6f2 Fix actions not presenting if not connected 2024-05-19 17:34:32 -05:00
Pat Hartl
de89075463 Null check for manifests that may not have actions 2024-05-10 20:50:37 -05:00
Pat Hartl
9d8df90155 Import games using Game type instead of manifest
Games now import using the Game type instead of manifest. The manifest is fine for locally caching the game (though who knows, this could change as well), but for providing complex information like dependent games versioning it just doesn't have enough data.

Importing has been changed to provide the "Update Available" title change on games where the main game or mod/expansion has a new version available.

Notes now get populated on import, not just install.

Reworked population of game menu items to include non-primary actions from mods/expansions.

Simplified and fixed certain scripts not running for mods/expansions.
2024-05-07 01:47:00 -05:00
Pat Hartl
86393deeea Restructure how dependent manifest actions are loaded 2024-05-06 22:55:25 -05:00
Pat Hartl
4beaa114f8 Add mod/expansion actions to action list
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-05-04 01:07:06 -05:00
Pat Hartl
55087986a2 Don't resolve server host if it's an IP address 2024-03-23 11:47:21 -05:00
Pat Hartl
59ed5465b2 Add script types that can execute before a game is started and after it;s closed 2024-03-13 17:16:24 -05:00
Pat Hartl
3df800caf5 Safely handle actions if server is unavailable or action is misconfigured 2024-03-10 19:51:42 -05:00
Pat Hartl
3d37da29fe Fix issue where updating to v0.6.0 would duplicate library items and break some games
Playnite doesn't allow the editing of IDs. This fix removes the original game entry and adds the migrated one as a new game. Install status and directory are maintained.
2024-02-22 17:19:45 -06:00
Pat Hartl
a38d5a8826 Catch exceptions when migrating game IDs 2024-02-18 19:06:06 -06:00
Pat Hartl
9972fd3353 Add migrations for game ID and version for pre-0.6.0 installed games 2024-02-18 19:00:09 -06:00
Pat Hartl
d136c87d46 Fix install script context menu item localization 2024-02-18 17:53:40 -06:00
Pat Hartl
255c630e5b Move hard coded strings to localization for Playnite addon 2024-02-18 17:24:45 -06:00
Pat Hartl
01b2bd855b Remove main menu item for changing name across all games.
This was replaced by the profile menu at the top of the main library view.
2024-02-18 17:23:29 -06:00
Pat Hartl
c99d82c916 Remove unused usings 2024-02-18 15:59:28 -06:00
Pat Hartl
47f1996c14 Renamed authentication view model 2024-02-18 15:54:39 -06:00
Pat Hartl
293575255f Rename settings view model 2024-02-18 15:53:32 -06:00
Pat Hartl
a1e4ef6dc5 Rename download queue view 2024-02-18 15:52:41 -06:00
Pat Hartl
7848b310dc Rename authentication view 2024-02-18 15:52:08 -06:00
Pat Hartl
87707548da Rename save manager view 2024-02-18 15:51:02 -06:00
Pat Hartl
ea32a45a5e Rename settings view 2024-02-18 15:50:25 -06:00
Pat Hartl
1046f508fa WIP save manager 2024-02-17 17:30:14 -06:00
Pat Hartl
c287bbbc18 Remove any usage of GameId in favor of the game's actual GUID 2024-02-16 01:23:26 -06:00
Pat Hartl
4b447eeac6 Move import functionality to separate controller. Fix plugin ID not being set on games. Safely handle exceptions on individual game imports. 2024-02-16 01:06:13 -06:00
Pat Hartl
5ff0f49398 Basic implementation of ImportGames
Instead of providing metadata and possibly updating a game if it already exists, this gives us full control over how games are imported into the library. This update will allow all changes to games made in the server to be synced to the clients. It also simplifies the import, though it is more prone to exceptions due to the current use of yield.
2024-02-16 00:22:01 -06:00
Pat Hartl
eb9f1387ab Sync play times from server 2024-02-14 01:57:54 -06:00
Pat Hartl
10a00c1b0b Make sure login controls aren't cut off in other themes 2024-02-13 23:24:42 -06:00
Pat Hartl
dd2ef10f78 Prompt to install game update if there is a version mismatch 2024-02-12 17:32:50 -06:00
Pat Hartl
6585ab70e2 Update basic game info when refreshing data from LC server 2024-02-12 17:32:06 -06:00
Pat Hartl
b978ac9abf Only download saves after the game's install datetime 2024-02-07 00:06:51 -06:00
Pat Hartl
fbdbd993df Fix qualification for downloading latest save 2024-02-06 19:37:09 -06:00
Pat Hartl
b3aaedd65b Only download saves that are newer than the last time the game was played.
This changes the downloading mechanism for saves so only saves that have been uploaded since the last time the game was run get downloaded to the client.
2024-02-06 19:36:55 -06:00
Pat Hartl
f808b6cdd2 Add server IP as possible server action variable 2024-02-06 01:43:40 -06:00
Pat Hartl
93ce25c263 Keep track of the currently installed key. Run key change on game start if the key doesn't match the allocated key. 2024-02-03 18:32:42 -06:00
Pat Hartl
4404450798 Fix name not loading on Playnite start
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
2024-01-27 11:25:59 -08:00
Pat Hartl
4d278fc040 Fix name changes going off of PlayerAlias which may result in empty string if no alias has been set 2024-01-27 11:10:33 -08:00
Pat Hartl
0732e5d564 Don't replace slashes in action arguments as some may use something other than the path separator char
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
LANCommander / build (push) Has been cancelled
2024-01-26 01:56:21 -06:00
Pat Hartl
66977659b6 Fix profile button not showing in offline mode. Fix offline mode.
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
LANCommander / build (push) Has been cancelled
2024-01-24 00:35:34 -06:00
Pat Hartl
4c0bd86d80 Show authentication window instead of context menu if not connected to server 2024-01-23 19:03:13 -06:00
Pat Hartl
4af2f9d32c Remove old top profile menu item and properly name profile button 2024-01-23 18:57:15 -06:00
Pat Hartl
16afb8af1a Refactor profile button into full strip and properly manage state of logged in user with display name. 2024-01-23 18:54:44 -06:00
Pat Hartl
769adc0605 Implement actual API logout method to kill any valid tokens. Keep better track if the API client is actually connected. 2024-01-23 18:01:12 -06:00
Pat Hartl
d2f1737c16 Fix cancel on library import 2024-01-23 17:29:15 -06:00
Pat Hartl
29577bebb2 Fix games showing no actions when they're not tied to any servers 2024-01-22 19:10:13 -06:00
Pat Hartl
267ce578ff Better layout of the download queue 2024-01-22 01:50:30 -06:00
Pat Hartl
f61169771f Fix current item not clearing after finished install 2024-01-21 14:44:36 -06:00
Pat Hartl
7f0c39abe3 Bind remove from queue button 2024-01-21 13:14:25 -06:00
Pat Hartl
a160f7dc54 Hook up sidebar progress with current item progress. Add indeterminate state for current item progress. 2024-01-21 12:52:12 -06:00