Commit graph

32 commits

Author SHA1 Message Date
dalbitresb12
6641069c4a
Set BaseGame for extensions/mods before running scripts
The server sets `BaseGame` to null to avoid a circular dependency, but if this is not set then the expansions/mods won't find their scripts

There's probably a better way of doing this, like changing the `Run*Script` functions to receive the game ID, just like the `GameService.Install` already does, but this temporary change fixed the script issue for now
2024-05-10 05:53:14 -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
8cc8122d13 Install dependent expansions/mods 2024-05-01 23:58:07 -05:00
Pat Hartl
3def9745d7 Remove completed items from queue if uninstalled or updated 2024-03-12 01:33:58 -05:00
Pat Hartl
bb03809004 Import game refreshing metadata after installation 2024-03-09 16:56:28 -06:00
Pat Hartl
255c630e5b Move hard coded strings to localization for Playnite addon 2024-02-18 17:24:45 -06:00
Pat Hartl
64a7b98bc5 Fix cover image in download queue 2024-02-16 02:01:22 -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
eb9f1387ab Sync play times from server 2024-02-14 01:57:54 -06:00
Pat Hartl
d45c903d28 Add version number to download queue view 2024-02-12 17:46:24 -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
b978ac9abf Only download saves after the game's install datetime 2024-02-07 00:06:51 -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
f8b3098e68 Add default cover in download queue
Fixes error dialog "Cannot install game: Value cannot be null. Parameter name: path2" when trying to install games that don't have a defined cover image.
2024-02-03 17:36:40 -06:00
Pat Hartl
6a5556860b Avoid download queue getting locked if there's an error thrown by the PowerShell runtime
Potentially fixes issues that may occur with some scripts. This will also avoid the download queue getting locked when someone hits "No" on a UAC prompt when running a script as admin.
2024-02-03 17:35:22 -06: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
71ccf03fb0 Added download canceling back into downloads 2024-01-25 00:46:10 -06:00
Pat Hartl
69dfa2627c Fixed timespan rendering 2024-01-25 00:20:48 -06:00
Pat Hartl
0c7d77e8be Added logging for download queue 2024-01-24 23:44:27 -06:00
Pat Hartl
71a27bee91 Added notifications for game install failure in download queue 2024-01-24 23:36:52 -06:00
Pat Hartl
60d1f89b38 Fix display of time remaining on downloads 2024-01-24 23:02:15 -06:00
Pat Hartl
cb5c589c9c Add the base game to the download queue when installing standalone mods or expansions
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
2024-01-24 19:00:22 -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
529646cbae Migrate packages.config to PackageReference. Refactor notifications to use UWP-style 2024-01-22 19:10:57 -06:00
Pat Hartl
08a3a50bc2 Fix queuing of games through the "Install" button 2024-01-22 02:38:53 -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