Commit graph

121 commits

Author SHA1 Message Date
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
Pat Hartl
b0362827a1 Use dispatcher to update UI. DownloadQueueItem implements ObservableObject for UI updates. Properly handle InstallController lifetime. Added cover to download queue. Laid out the download queue a bit more. 2024-01-21 12:34:30 -06:00
Pat Hartl
a269d7a658 Rough but functional download queue 2024-01-20 21:02:41 -06:00
Pat Hartl
d674f20712 Added profile button 2024-01-19 05:33:33 -06:00
Pat Hartl
11b9b884e4 Show offline mode button if offline mode is enabled. Show name in name change button and don't run name change across all games. 2024-01-19 05:15:01 -06:00
Pat Hartl
7278aa8b86 Keep track of what name was used on the last name change script run for a game 2024-01-19 00:25:38 -06:00
Pat Hartl
ab7527479a Add offline mode to Playnite plugin 2024-01-18 23:22:46 -06:00
Pat Hartl
d7cb7be6ad Remove main menu item for clearing download cache, not used anymore 2024-01-18 22:52:09 -06:00
Pat Hartl
e6cc3d0901 Added the ability to manually specify host and port for server variable expansion. Default to client server address 2024-01-18 19:36:20 -06:00